aboutsummaryrefslogtreecommitdiffstats
path: root/man7/signal.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2008-10-04 08:33:53 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2008-10-04 08:33:53 +0200
commitd5c882987409f9bb5d35a079dc3db20606485e4c (patch)
tree83f7d174506e62550cfdc1017cf1e2b487eb222e /man7/signal.7
parent3fb46b2b3b6ecd39d0ca465288977234f6e63f70 (diff)
downloadman-pages-d5c882987409f9bb5d35a079dc3db20606485e4c.tar.gz
signal.7: describe semantics w.r.t. fork() and execve()
Include text describing semantics of fork() and execve() for signal dispositions, signal mask, and pending signal set. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/signal.7')
-rw-r--r--man7/signal.720
1 files changed, 20 insertions, 0 deletions
diff --git a/man7/signal.7 b/man7/signal.7
index c7e9b1ac5f..a300b101f3 100644
--- a/man7/signal.7
+++ b/man7/signal.7
@@ -81,6 +81,14 @@ when the signal is delivered.
The signal disposition is a per-process attribute:
in a multithreaded application, the disposition of a
particular signal is the same for all threads.
+
+A child created via
+.BR fork (2)
+inherits a copy of its parent's signal dispositions.
+During an
+.BR execve (2),
+the dispositions of handled signals are reset to the default;
+the dispositions of ignored signals are left unchanged.
.SS "Signal Mask and Pending Signals"
A signal may be
.IR blocked ,
@@ -98,6 +106,12 @@ In a traditional single-threaded application,
.BR sigprocmask (2)
can be used to manipulate the signal mask.
+A child created via
+.BR fork (2)
+inherits a copy of its parent's signal mask;
+the signal mask is preserved across
+.BR execve (2).
+
A signal may be generated (and thus pending)
for a process as a whole (e.g., when sent using
.BR kill (2))
@@ -121,6 +135,12 @@ using
This set will consist of the union of the set of pending
process-directed signals and the set of signals pending for
the calling thread.
+
+A child created via
+.BR fork (2)
+initially has an empty pending signal set;
+the pending signal set is preserved across an
+.BR execve (2).
.SS "Standard Signals"
Linux supports the standard signals listed below.
Several signal numbers