From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/MAN/signal.htm | 104 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 reference/C/MAN/signal.htm (limited to 'reference/C/MAN/signal.htm') diff --git a/reference/C/MAN/signal.htm b/reference/C/MAN/signal.htm new file mode 100644 index 0000000..112bedd --- /dev/null +++ b/reference/C/MAN/signal.htm @@ -0,0 +1,104 @@ +signal + +
+
+
+
+
+

SIGACTION(2) Linux Programmer's Manual SIGACTION(2) +

+ +

NAME +

signal - ANSI C signal handling. + + +

SYNOPSIS +

#include <signal.h> + + + void (*signal(int signum, void (*handler)(int)))(int); + + +

DESCRIPTION +

The signal system call installs a new signal handler for + signal signum. The signal handler is set to handler which + may be a user specified function, or one of the following: + + SIG_IGN + Ignore the signal. + + SIG_DFL + Reset the signal to its default behavior. + + + +

RETURN VALUE +

signal returns the previous value of the signal handler, + or SIG_ERR on error. + + +

NOTES +

Signal handlers cannot be set for SIGKILL or SIGSTOP. + + Unlike BSD systems, signals under Linux are reset to their + default behavior when raised. + + If you're confused by the prototype at the top of this + manpage, it may help to see it separated out thus: + + typedef void (*sighandler_t)(int); + sighandler_t signal(int signum, sighandler_t handler); + + +

CONFORMING TO +

ANSI C + + +
+
+

SEE ALSO +

+kill, +kill, +killpg, +pause, +raise, +tion, +signal, +sigsetops, +sigvec, +

+
+
+
+
+
+
+
+
+

Linux 1.0 24 September 1994 1 +

+ +
+

+


+

+

+ + + + +
+Top + +Master Index + +Keywords + +Functions +
+
+

+


+ +This manual page was brought to you by mjl_man V-2.0 -- cgit v1.2.3-54-g00ecf