ptg10805159302 Process Relationships Chapter 9
background
process group(s)foreground
process grouplogin shellloginexecgettyor
telnetd
exec,aftersetsid,then
establishing controlling terminalinit,inetd,orlaunchduser at a
terminalterminal
driverterminal-generated signals(SIGINT,SIGQUIT,SIGTSTP)delivered to process groupterminal input/outputread from terminal
generatesSIGTTINwrite to terminal may
generateSIGTTOU
tcsetpgrpto set process groupfor controlling terminalchange in statusof childrenchange in status
setpgidof childrensetpgidsession
Figure 9.9Summary of job control features with foreground and background jobs, and terminal drivergroup to the actual terminal. The dashed line corresponding to theSIGTTOUsignal
means that whether the output from a process in the background process group appears
on the terminal is an option.
Is job control necessary or desirable? Job control was originally designed and
implemented beforewindowing terminals werewidespread. Some people claim that a
well-designed windowing system removes any need for job control. Some complain
that the implementation of job control — requiring support from the kernel, the terminal