public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clone.2: Clarify the behaviour of exit_signal with CLONE_PARENT
@ 2023-08-10  1:34 Sargun Dhillon
  2023-08-12 17:14 ` Alejandro Colomar
  0 siblings, 1 reply; 2+ messages in thread
From: Sargun Dhillon @ 2023-08-10  1:34 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: linux-man

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@sargun.me>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-12 17:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-10  1:34 [PATCH] clone.2: Clarify the behaviour of exit_signal with CLONE_PARENT Sargun Dhillon
2023-08-12 17:14 ` Alejandro Colomar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox