Signal Anticipation
Signal anticipation is what an application can do to plan for signals. From the application's point of view, the preferred method of planning for signals is with the sigaction() system call. Other system calls are available too, but they have essentially the same functionality. Sigaction() is the POSIX standard and should be used in all new development.
Sigaction() expects three arguments: the signal number, a struct sigaction containing new values to be used for that signal, and a struct sigaction into which the old values can be returned. The file /usr/include/sys/signal.h includes symbolic definitions of the signal numbers, the definition of the sigaction structure, and a variety of other signal-related declarations. The ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access