|| Linux Programmer's Manual
NAME sysv_signal - signal handling with System V semantics
/* See feature_test_macros(7) */
typedef void (*sighandler_t)(int);
() function takes the same arguments, and performs the same task, as
() provides the System V unreliable signal semantics, that is: a) the disposition of the signal is reset to the default when the handler is invoked; b) delivery of further instances of the signal is not blocked while the signal handler is executing; and c) if the handler interrupts (certain) blocking system calls, then the system call is not automatically restarted.
RETURN VALUE The
sysv_signal() function returns the previous value of the signal handler, or
SIG_ERR on error.
ERRORS As for
CONFORMING TO This function is nonstandard.
() should be avoided; use
On older Linux systems,
(2) were equivalent. But on newer systems,
(2) provides reliable signal semantics; see
(2) for details.
The use of
is a GNU extension; this type is defined only if the
feature test macro is defined.
COLOPHON This page is part of release 3.53 of the Linux
man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/.