[PATCH] clone.2: Clarify the behaviour of exit_signal with CLONE_PARENT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's documented under ERRORS that specifying a exit_signal with CLONE_PARENT
is not allowed, but it is not specified how the exit_signal is to be set
(or is set) when using the CLONE_PARENT flag.

Signed-off-by: Sargun Dhillon <sargun@xxxxxxxxx>
---
 man2/clone.2 | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/man2/clone.2 b/man2/clone.2
index 4c5b4ac6b..0b2a60482 100644
--- a/man2/clone.2
+++ b/man2/clone.2
@@ -290,7 +290,13 @@ The termination signal is specified in the low byte of
 .RB ( clone ())
 or in
 .I cl_args.exit_signal
-.RB ( clone3 ()).
+.RB ( clone3 ()),
+unless
+.BR CLONE_PARENT
+flag is set. If the
+.BR CLONE_PARENT
+flag is set, then the exit_signal is copied from the calling process's process
+group leader.
 If this signal is specified as anything other than
 .BR SIGCHLD ,
 then the parent process must specify the
-- 
2.39.3




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux