rendered paste bodytsh> jobs
[1] (13011) Running ./myspin1 10 &
[2] (13012) Stopped ./mytstpp
tsh> quit
[labbott@tuna tshlab-handout]$ ./sdriver -t 14
Running trace14.txt...
Oops: test and reference outputs for trace14.txt differed.
Test output:
#
# trace14.txt - Forward SIGTSTP to foreground job only.
#
tsh> ./myspin1 10 &
[1] (13018) ./myspin1 10 &
tsh> ./mytstpp
tsh> jobs
[1] (13018) Running ./myspin1 10 &
[2] (13020) Stopped ./mytstpp
Reference output:
#
# trace14.txt - Forward SIGTSTP to foreground job only.
#
tsh> ./myspin1 10 &
[1] (13028) ./myspin1 10 &
tsh> ./mytstpp
Job [2] (13030) stopped by signal 20
tsh> jobs
[1] (13028) Running ./myspin1 10 &
[2] (13030) Stopped ./mytstpp
Output of 'diff test reference':
--- /usr/tmp/test_raw_outfile.13013 2008-03-11 20:15:02.000000000 -0400
+++ /usr/tmp/ref_raw_outfile.13013 2008-03-11 20:15:02.000000000 -0400
@@ -2,8 +2,9 @@
# trace14.txt - Forward SIGTSTP to foreground job only.
#
tsh> ./myspin1 10 &
-[1] (13018) ./myspin1 10 &
+[1] (13028) ./myspin1 10 &
tsh> ./mytstpp
+Job [2] (13030) stopped by signal 20
tsh> jobs
-[1] (13018) Running ./myspin1 10 &
-[2] (13020) Stopped ./mytstpp
+[1] (13028) Running ./myspin1 10 &
+[2] (13030) Stopped ./mytstpp