1 .\" $NetBSD: signal.7,v 1.13 2009/02/26 19:07:13 wiz Exp $
3 .\" Copyright (c) 1999 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
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
17 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
19 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
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
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
25 .\" POSSIBILITY OF SUCH DAMAGE.
36 header file defines the following signals:
38 .Bl -column "99" "SIGVTALARM" "terminate process" -compact
39 .It Em "Value" Ta Em "Name" Ta Em "Default Action" Ta Em "Description"
40 .It 1 Ta Li SIGHUP Ta "terminate process" Ta "terminal line hangup"
41 .It 2 Ta Li SIGINT Ta "terminate process" Ta "interrupt program"
42 .It 3 Ta Li SIGQUIT Ta "create core image" Ta "quit program"
43 .It 4 Ta Li SIGILL Ta "create core image" Ta "illegal instruction"
44 .It 5 Ta Li SIGTRAP Ta "create core image" Ta "trace trap"
45 .It 6 Ta Li SIGABRT Ta "create core image" Ta Xr abort 3
48 .It 7 Ta Li SIGEMT Ta "create core image" Ta "emulate instruction executed"
49 .It 8 Ta Li SIGFPE Ta "create core image" Ta "floating-point exception"
50 .It 9 Ta Li SIGKILL Ta "terminate process" Ta "kill program (cannot be caught or ignored)"
51 .It 10 Ta Li SIGBUS Ta "create core image" Ta "bus error"
52 .It 11 Ta Li SIGSEGV Ta "create core image" Ta "segmentation violation"
53 .It 12 Ta Li SIGSYS Ta "create core image" Ta "invalid system call argument"
54 .It 13 Ta Li SIGPIPE Ta "terminate process" Ta "write to a pipe with no reader"
55 .It 14 Ta Li SIGALRM Ta "terminate process" Ta "real-time timer expired"
56 .It 15 Ta Li SIGTERM Ta "terminate process" Ta "software termination signal"
57 .It 16 Ta Li SIGURG Ta "discard signal" Ta "urgent condition present on socket"
58 .It 17 Ta Li SIGSTOP Ta "stop process" Ta "stop (cannot be caught or ignored)"
59 .It 18 Ta Li SIGTSTP Ta "stop process" Ta "stop signal generated from keyboard"
60 .It 19 Ta Li SIGCONT Ta "discard signal" Ta "continue after stop (even if blocked or ignored)"
61 .It 20 Ta Li SIGCHLD Ta "discard signal" Ta "child status has changed"
62 .It 21 Ta Li SIGTTIN Ta "stop process" Ta "background read attempted from control terminal"
63 .It 22 Ta Li SIGTTOU Ta "stop process" Ta "background write attempted to control terminal"
64 .It 23 Ta Li SIGIO Ta "discard signal" Ta "I/O is possible on a descriptor (see"
66 .It 24 Ta Li SIGXCPU Ta "terminate process" Ta "CPU time limit exceeded (see"
68 .It 25 Ta Li SIGXFSZ Ta "terminate process" Ta "file size limit exceeded (see"
70 .It 26 Ta Li SIGVTALRM Ta "terminate process" Ta "virtual time alarm (see"
72 .It 27 Ta Li SIGPROF Ta "terminate process" Ta "profiling timer alarm (see"
74 .It 28 Ta Li SIGWINCH Ta "discard signal" Ta "window size change"
75 .It 29 Ta Li SIGINFO Ta "discard signal" Ta "status request from keyboard"
76 .It 30 Ta Li SIGUSR1 Ta "terminate process" Ta "user-defined signal 1"
77 .It 31 Ta Li SIGUSR2 Ta "terminate process" Ta "user-defined signal 2"
78 .It 32 Ta Li SIGPWR Ta "discard signal" Ta "power failure/restart"
81 A function that is async-signal-safe is either reentrant or
82 non-interruptible by signals.
83 This means that they can be used in
85 and in the child of threaded programs after doing
88 The following functions are async-signal-safe.
89 Any function not listed
90 below is unsafe to use in signal handlers.
109 .Xr clock_gettime 2 ,
149 .\" .Xr posix_trace_event 2
199 .Xr timer_getoverrun 2 ,
200 .Xr timer_gettime 2 ,
201 .Xr timer_settime 2 ,
230 These signals conform to
232 with the exception of
246 which are Berkeley extensions (available on most
250 which comes from System V.
258 kernel never generates the