| @@ -1,40 +1,40 @@ | | | @@ -1,40 +1,40 @@ |
1 | .\" $NetBSD: signal.7,v 1.25 2018/05/30 23:41:44 uwe Exp $ | | 1 | .\" $NetBSD: signal.7,v 1.26 2021/05/30 07:17:01 dholland Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 1999, 2016 The NetBSD Foundation, Inc. | | 3 | .\" Copyright (c) 1999, 2016 The NetBSD Foundation, Inc. |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Redistribution and use in source and binary forms, with or without | | 6 | .\" Redistribution and use in source and binary forms, with or without |
7 | .\" modification, are permitted provided that the following conditions | | 7 | .\" modification, are permitted provided that the following conditions |
8 | .\" are met: | | 8 | .\" are met: |
9 | .\" 1. Redistributions of source code must retain the above copyright | | 9 | .\" 1. Redistributions of source code must retain the above copyright |
10 | .\" notice, this list of conditions and the following disclaimer. | | 10 | .\" notice, this list of conditions and the following disclaimer. |
11 | .\" 2. Redistributions in binary form must reproduce the above copyright | | 11 | .\" 2. Redistributions in binary form must reproduce the above copyright |
12 | .\" notice, this list of conditions and the following disclaimer in the | | 12 | .\" notice, this list of conditions and the following disclaimer in the |
13 | .\" documentation and/or other materials provided with the distribution. | | 13 | .\" documentation and/or other materials provided with the distribution. |
14 | .\" | | 14 | .\" |
15 | .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS | | 15 | .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS |
16 | .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | | 16 | .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
17 | .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | | 17 | .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
18 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | | 18 | .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS |
19 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | | 19 | .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
20 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 20 | .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
21 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 21 | .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
22 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 22 | .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
23 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 23 | .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
24 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 24 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
25 | .\" POSSIBILITY OF SUCH DAMAGE. | | 25 | .\" POSSIBILITY OF SUCH DAMAGE. |
26 | .\" | | 26 | .\" |
27 | .Dd May 28, 2018 | | 27 | .Dd August 24, 2018 |
28 | .Dt SIGNAL 7 | | 28 | .Dt SIGNAL 7 |
29 | .Os | | 29 | .Os |
30 | .Sh NAME | | 30 | .Sh NAME |
31 | .Nm signal | | 31 | .Nm signal |
32 | .Nd signal facilities | | 32 | .Nd signal facilities |
33 | .Sh DESCRIPTION | | 33 | .Sh DESCRIPTION |
34 | A | | 34 | A |
35 | .Nm | | 35 | .Nm |
36 | is a system-level notification delivered to a process. | | 36 | is a system-level notification delivered to a process. |
37 | Signals may be generated as the result of process activity, by certain | | 37 | Signals may be generated as the result of process activity, by certain |
38 | user inputs, by kernel facilities or subsystems, or sent | | 38 | user inputs, by kernel facilities or subsystems, or sent |
39 | programmatically by other processes or by users. | | 39 | programmatically by other processes or by users. |
40 | There is a small fixed set of signals, each with a symbolic name and a | | 40 | There is a small fixed set of signals, each with a symbolic name and a |
| @@ -71,27 +71,28 @@ This can sometimes be expensive. | | | @@ -71,27 +71,28 @@ This can sometimes be expensive. |
71 | See | | 71 | See |
72 | .Xr sigaction 2 | | 72 | .Xr sigaction 2 |
73 | for further information.) | | 73 | for further information.) |
74 | .Pp | | 74 | .Pp |
75 | If the process has elected to | | 75 | If the process has elected to |
76 | .Em catch | | 76 | .Em catch |
77 | the signal, which means that the process has installed a handler to | | 77 | the signal, which means that the process has installed a handler to |
78 | react to the signal in some process-specific way, the kernel arranges | | 78 | react to the signal in some process-specific way, the kernel arranges |
79 | for the process's handler logic to be invoked. | | 79 | for the process's handler logic to be invoked. |
80 | This is always done in a way that allows the process to resume if | | 80 | This is always done in a way that allows the process to resume if |
81 | desired. | | 81 | desired. |
82 | (Note, however, that some signals may not be caught.) | | 82 | (Note, however, that some signals may not be caught.) |
83 | Otherwise, the default action for the signal is taken. | | 83 | Otherwise, the default action for the signal is taken. |
84 | For most signals the default action is a core dump. | | 84 | For most signals the default action is to terminate the process and |
| | | 85 | generate a core dump. |
85 | See the table below. | | 86 | See the table below. |
86 | Note that the term | | 87 | Note that the term |
87 | .Em delivery | | 88 | .Em delivery |
88 | is also used for the specific process of arranging for a signal | | 89 | is also used for the specific process of arranging for a signal |
89 | handler to be invoked. | | 90 | handler to be invoked. |
90 | .Pp | | 91 | .Pp |
91 | In general, signals are delivered as soon as they are posted. | | 92 | In general, signals are delivered as soon as they are posted. |
92 | (Some delays may occur due to scheduling.) | | 93 | (Some delays may occur due to scheduling.) |
93 | However, in some cases a process that has been sleeping in the kernel | | 94 | However, in some cases a process that has been sleeping in the kernel |
94 | may need to do slow things as part of unwinding its state; this can | | 95 | may need to do slow things as part of unwinding its state; this can |
95 | sometimes lead to human-perceptible delays. | | 96 | sometimes lead to human-perceptible delays. |
96 | .Pp | | 97 | .Pp |
97 | Also, some sleep states within the kernel are | | 98 | Also, some sleep states within the kernel are |