Examines and changes the signal mask of the calling thread.
#include <signal.h> int sigprocmask ( int how, const sigset_t *act, sigset_t *oldact );
(IN) Specifies how the signal set is to be changed:
(IN) Points to the new signal set. If set to a null pointer, the signal set is not changed and the value of the how parameter is ignored.
(OUT) Points to the old signal set, if the oldact parameter is not a null pointer.
If successful, returns 0. Otherwise, returns -1, sets errno to indicate the error condition, and does not change the calling thread's signal mask.
IMPORTANT:This function is only available to NLMs that are using POSIX semantics.
If the act parameter is a null pointer, the sigprocmask can be used to examine the current signal set. The how parameter is ignored, and the oldact parameter returns the current signal set.
If there are any pending unblocked signals after the call to sigprocmask, at least one of these signals must be delivered before the sigprocmask function returns.