suspend question -- Berkeley kernels kill TSTP processes

Ian! D. Allen [CGL] idallen at watcgl.waterloo.edu
Mon Sep 18 15:13:26 AEST 1989


Berkeley-derived unix kernels SIGKILL processes that receive SIGTSTP,
SIGTTOU, or SIGTTIN if they have no parent (parent pid == 1 [init]).  

Try this:

    % stty tostop
    % ( date & )
    % 

and you'll see no output from the date command.  Or, try:

    % ( sleep 999 & )
    % kill -TSTP <pidofsleep>
    % ps x

I quote the reason from sys/kern_sig.c:

			/*
			 * Don't clog system with children of init
			 * stopped from the keyboard.
			 */
-- 
-IAN! (Ian! D. Allen) idallen at watcgl.uwaterloo.ca idallen at watcgl.waterloo.edu
 129.97.128.64    Computer Graphics Lab/University of Waterloo/Ontario/Canada



More information about the Comp.unix.wizards mailing list