Examines or changes the action taken by a process when it receives a specific signal.
#include <signal.h> int sigaction ( int sig, const struct sigaction *act, struct sigaction *oact );
(IN) Specifies the signal which should trigger the action. For a list of signals, see Section 5.1, Standard Signals.
(IN) Points to action to take. If a null pointer, the action is not changed.
(OUT) Points to where the old action is saved, if not a null pointer.
If successful, returns 0. Otherwise, returns -1 and sets errno to the following. No new signal-catching function is installed.
Once an action has been specified for a specific signal, that action remains in affect until another actions is explicitly requested with another call to the sigaction function.
IMPORTANT:This function is only available to NLMs that are using POSIX semantics.