aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2020-01-22 02:09:17 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-01-22 02:09:17 +0100
commit27f14b447af78c425125409ac4b465ab3547efdc (patch)
treeb1eb3eab3577fbace20783117721aba0665454bf
parent302c512cef4a5ecb40f748758dd611b053a3654a (diff)
downloadman-pages-27f14b447af78c425125409ac4b465ab3547efdc.tar.gz
clone.2: Document CLONE_CLEAR_SIGHAND
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/clone.223
1 files changed, 23 insertions, 0 deletions
diff --git a/man2/clone.2 b/man2/clone.2
index c514428d50..14f21c3fde 100644
--- a/man2/clone.2
+++ b/man2/clone.2
@@ -433,6 +433,20 @@ returns in the parent process, which will be relevant if the
.BR CLONE_VM
flag is also employed.)
.TP
+.BR CLONE_CLEAR_SIGHAND " (since Linux 5.5)"
+.\" commit b612e5df4587c934bd056bf05f4a1deca4de4f75
+By default, signal dispositions in the child thread are the same as
+in the parent.
+If this flag is specified,
+then all signals that are handled in the parent
+are reset to their default dispositions
+.RB ( SIG_DFL )
+in the child.
+.IP
+Specifying this flag together with
+.B CLONE_SIGHAND
+is nonsensical and disallowed.
+.TP
.BR CLONE_DETACHED " (historical)"
For a while (during the Linux 2.5 development series)
.\" added in 2.5.32; removed in 2.6.0-test4
@@ -1295,6 +1309,15 @@ One (or more) of the PIDs specified in
already exists in the corresponding PID namespace.
.TP
.B EINVAL
+Both
+.B CLONE_SIGHAND
+and
+.B CLONE_CLEAR_SIGHAND
+were specified in the
+.I flags
+mask.
+.TP
+.B EINVAL
.B CLONE_SIGHAND
was specified in the
.I flags