The function sigemptyset initializes the signal set pointed to by set so that all signals are excluded. The function sigfillset initializes the signal set so that all signals are included.
NOTE: All applications have to call either sigemptyset or sigfillset once for each signal set,before using the signal set.
The function sigaddset adds a single signal to an existing set,and sigdelset removes a single signal from a set . 程序清单: