October 2017
Intermediate to advanced
354 pages
9h 28m
English
Applications are provided with various APIs for managing signals; we shall take a look at few of the important ones:
#include <signal.h> int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); The sigaction structure is defined as something like: struct sigaction { void (*sa_handler)(int); void (*sa_sigaction)(int, siginfo_t *, void *); sigset_t sa_mask; int sa_flags; void (*sa_restorer)(void); };