sahandler
Sahandler refers to the signal handler designated by the sa_handler member of the POSIX sigaction structure. It is the function that the operating system will call in response to a specified signal when the action is installed as a handler rather than ignored or used with a default action. The handler function typically has the prototype void handler(int signum).
When a signal is delivered and sa_handler is in use, the kernel invokes the function pointed to
Usage typically involves defining a handler function, initializing a sigaction structure, assigning sa_handler, initializing sa_mask with
void sahandler(int sig) { /* handle signal */ }
sigaction(SIGINT, &act, NULL);
Sahandler is preferred in modern Unix-like systems over the older signal() interface because sigaction provides more