public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] man2/clone.2: clarify that CLONE_CLEAR_SIGHAND does not affect SIG_IGN
@ 2023-10-30 12:58 Max Kellermann
  2023-10-30 13:47 ` Alejandro Colomar
  0 siblings, 1 reply; 6+ messages in thread
From: Max Kellermann @ 2023-10-30 12:58 UTC (permalink / raw)
  To: alx; +Cc: linux-man, Max Kellermann

The old wording was ambiguous, but it is important to know that
signals that were set to SIG_IGN will not be restored to SIG_DFL.

Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
---
 man2/clone.2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man2/clone.2 b/man2/clone.2
index 4a75b557b..deb4bdb5b 100644
--- a/man2/clone.2
+++ b/man2/clone.2
@@ -455,7 +455,8 @@ flag is also employed.)
 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
+then all signals that are handled in the parent (and not set to
+.BR SIG_IGN )
 are reset to their default dispositions
 .RB ( SIG_DFL )
 in the child.
-- 
2.39.2


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

end of thread, other threads:[~2023-10-31 12:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-30 12:58 [PATCH] man2/clone.2: clarify that CLONE_CLEAR_SIGHAND does not affect SIG_IGN Max Kellermann
2023-10-30 13:47 ` Alejandro Colomar
2023-10-30 13:52   ` Max Kellermann
2023-10-30 16:21     ` Alejandro Colomar
2023-10-30 16:27       ` [PATCH v2] " Max Kellermann
2023-10-31 12:45         ` Alejandro Colomar

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