trace*.txt
Do nothing.
quit
command.⚠️ addjob()
and deletejob()
has more arguments than the textbook version.
In waitfg()
, use sigsuspend()
to wait:
jobs
builtin command.SIGINT
to FG job.SIGINT
only to FG job.Do nothing.
SIGTSTP
only to FG job.Similar to #6, just one more thing:
bg
builtin commandfg
builtin commandSIGINT
to every process in FG process groupSimilar to #6, just one change:
SIGTSTP
to every process in FG process groupMain test.
Move job->state = ST;
from sigtstp_handler()
to sigchld_handler()
.