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 ...

Get HP-UX 11i Internals now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.