1SIGRETURN(2) Linux Programmer's Manual SIGRETURN(2)
2
3
4
6 sigreturn - return from signal handler and cleanup stack frame
7
9 int sigreturn(unsigned long __unused);
10
12 When the Linux kernel creates the stack frame for a signal handler, a
13 call to sigreturn() is inserted into the stack frame so that the signal
14 handler will call sigreturn() upon return. This inserted call to sigre‐
15 turn() cleans up the stack so that the process can restart from where
16 it was interrupted by the signal.
17
19 sigreturn() never returns.
20
22 The sigreturn() call is used by the kernel to implement signal han‐
23 dlers. It should never be called directly. Better yet, the specific use
24 of the __unused argument varies depending on the architecture.
25
27 sigreturn() is specific to Linux and should not be used in programs
28 intended to be portable.
29
31 /usr/src/linux/arch/i386/kernel/signal.c
32 /usr/src/linux/arch/alpha/kernel/entry.S
33
35 kill(2), signal(2), signal(7)
36
37
38
39Linux 1.3.20 1995-08-21 SIGRETURN(2)