struct sigaction { void (*sa_sigaction)(int, siginfo_t *, void *); void (*sa_restorer)(void); sigset_t sa_mask; int sa_flags; }; int sigaction(int sig, struct sigaction *act, struct sigaction *oldact);
This syscall fetches and/or changes the associated actions with the signal
sig.
If not NULL, act can be used for setting a new action, if not
NULL, oldact can be used for getting the existing action.
It returns 0 on success or -1 on failure, with the following
errno:
EINVALsig is not valid.
EFAULTA non-NULL pointer points to not valid memory.
EPERMThe caller does not have the appropriate permissions over pid to actually
kill.