diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-05-04 20:32:14 +0000 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2007-05-04 20:32:14 +0000 |
commit | 2e519bf2eb5eea8effcd7285df33095a74907e04 (patch) | |
tree | 8a731bc47e7950e11d540d7465cbe334a7ac9d3f | |
parent | e8f5dd81ab7bea3624fc1b21f42b386dc9e3d1ab (diff) |
Added text referring to the discussion of async-signal-safe
functions in signal(7).
A few other minor formatting and wording changes.
-rw-r--r-- | man2/sigaction.2 | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/man2/sigaction.2 b/man2/sigaction.2 index 53239087..ba640ddb 100644 --- a/man2/sigaction.2 +++ b/man2/sigaction.2 @@ -232,20 +232,24 @@ are defined for all signals. .RI ( si_signo is unused on Linux.) The rest of the struct may be a union, so that one should only -read the fields that are meaningful for the given signal. +read the fields that are meaningful for the given signal: +.IP * 2 POSIX.1b signals and .B SIGCHLD fill in .IR si_pid " and " si_uid . .BR +.IP * .B SIGCHLD also fills in .IR si_status ", " si_utime " and " si_stime . +.IP * .IR si_int " and " si_ptr are specified by the sender of the POSIX.1b signal. -.\" See -.\" .BR sigqueue (2) -.\" for more details. +See +.BR sigqueue (2) +for more details. +.IP * .BR SIGILL , .BR SIGFPE , .BR SIGSEGV , @@ -257,7 +261,7 @@ with the address of the fault. .B SIGPOLL fills in .IR si_band " and " si_fd . - +.PP .I si_code indicates why this signal was sent. It is a value, not a bitmask. @@ -466,6 +470,11 @@ Attempts to do so are silently ignored. See .BR sigsetops (3) for details on manipulating signal sets. +.PP +See +.BR signal (7) +for a list of the async-signal-safe functions that can be +safely called inside from inside a signal handler. .SH BUGS In kernels up to and including 2.6.13, specifying .B SA_NODEFER |