Signal Handling--ref
void int / Imagine this is a subroutine used by various commands. /
sigprocmask,if you want to allow more signals of this type to arrive; see section.) sa_maskmember of the action structure passed to sigprocmaskinside the handler only affects what signals can arrive during the execution of the handler itself,not what signals can arrive once the handler returns. sigactionto establish a handler for a signal that you expect to receive asynchronously,if you want your program to work properly on System V Unix. On this system,the handling of a signal whose handler was established with
SIGCHLDthat compensates for the fact that the number of signals recieved may not equal the number of child processes generate them. It assumes that the program keeps track of all the child processes with a chain of structures as follows: struct process { struct process *next; /* The process ID of this child. */ int pid; /* The descriptor of the pipe or pseudo terminal on which output comes from this child. */ int input_descriptor; /* Nonzero if this process has stopped or terminated. */ sig_atomic_t have_status; /* The status of this child; 0 if running,otherwise a status value from |