Sets the disposition of the specified signal to SIG_IGN. This function is supported on OpenVMS Integrity servers and Alpha only. Format #include <signal.h> int sigignore (int signal);
1 – Argument
signal The specified signal. The signal argument can be assigned any of the signals defined in the <signal.h> header file, except SIGKILL and SIGSTOP.
2 – Description
The sighold, sigrelse, and sigignore functions provide simplified signal management: o The sighold function adds signal to the calling process's signal mask. o The sigrelse function removes signal from the calling process's signal mask. o The sigignore function sets the disposition of signal to SIG_ IGN. The sighold function, in conjunction with sigrelse and sigpause, can be used to establish critical regions of code that require the delivery of a signal to be temporarily deferred. Upon success, the sigignore function returns a value of 0. Otherwise, a value of -1 is returned, and errno is set to indicate the error. NOTE These interfaces are provided for compatibility only. New programs should use sigaction and sigprocmask to control the disposition of signals.
3 – Return Values
0 Indicates success. -1 Indicates an error; errno is set to the following value: o EINVAL - The value of the signal argument is either an invalid signal number or SIGKILL, or an attempt is made to catch a signal that cannot be intercepted or to ignore a signal that cannot be ignored.