1SIGNAL(7)                  Linux Programmer's Manual                 SIGNAL(7)
2
3
4

NAME

6       signal - overview of signals
7

DESCRIPTION

9       Linux  supports both POSIX reliable signals (hereinafter "standard sig‐
10       nals") and POSIX real-time signals.
11
12   Signal dispositions
13       Each signal has a current disposition, which determines how the process
14       behaves when it is delivered the signal.
15
16       The  entries  in the "Action" column of the table below specify the de‐
17       fault disposition for each signal, as follows:
18
19       Term   Default action is to terminate the process.
20
21       Ign    Default action is to ignore the signal.
22
23       Core   Default action is to terminate the process and  dump  core  (see
24              core(5)).
25
26       Stop   Default action is to stop the process.
27
28       Cont   Default  action  is  to  continue the process if it is currently
29              stopped.
30
31       A process can change the disposition of a signal using sigaction(2)  or
32       signal(2).   (The  latter  is  less portable when establishing a signal
33       handler; see signal(2) for  details.)   Using  these  system  calls,  a
34       process  can  elect one of the following behaviors to occur on delivery
35       of the signal: perform the default action; ignore the signal; or  catch
36       the signal with a signal handler, a programmer-defined function that is
37       automatically invoked when the signal is delivered.
38
39       By default, a signal handler is invoked on the  normal  process  stack.
40       It  is  possible  to  arrange that the signal handler uses an alternate
41       stack; see sigaltstack(2) for a discussion of how to do this  and  when
42       it might be useful.
43
44       The  signal  disposition is a per-process attribute: in a multithreaded
45       application, the disposition of a particular signal is the same for all
46       threads.
47
48       A child created via fork(2) inherits a copy of its parent's signal dis‐
49       positions.  During an execve(2), the dispositions  of  handled  signals
50       are  reset to the default; the dispositions of ignored signals are left
51       unchanged.
52
53   Sending a signal
54       The following system calls and library functions allow  the  caller  to
55       send a signal:
56
57       raise(3)
58              Sends a signal to the calling thread.
59
60       kill(2)
61              Sends a signal to a specified process, to all members of a spec‐
62              ified process group, or to all processes on the system.
63
64       pidfd_send_signal(2)
65              Sends a signal to a process identified by a PID file descriptor.
66
67       killpg(3)
68              Sends a signal to all of the  members  of  a  specified  process
69              group.
70
71       pthread_kill(3)
72              Sends  a  signal to a specified POSIX thread in the same process
73              as the caller.
74
75       tgkill(2)
76              Sends a signal to a specified thread within a specific  process.
77              (This is the system call used to implement pthread_kill(3).)