From 20a37132215bd71fdebdd5b64f73debc038a08f3 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 25 Sep 2019 16:16:58 +0200 Subject: [PATCH] pidfd_open.2: Further enhancements to fork() + pidfd_open() text Christian noted that SA_NOCLDWAIT also matters in this scenario. Reported-by: Christian Brauner Signed-off-by: Michael Kerrisk --- man2/pidfd_open.2 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/man2/pidfd_open.2 b/man2/pidfd_open.2 index e8ba3769a..8a4a7aafa 100644 --- a/man2/pidfd_open.2 +++ b/man2/pidfd_open.2 @@ -118,6 +118,15 @@ has not been explicitly set to .BR SIG_IGN (see .BR sigaction (2)); +.IP * +the +.BR SA_NOCLDSTOP +flag was not specified while establishing a handler for +.BR SIGCHLD +or while setting the disposition of that signal to +.BR SIG_DFL +(see +.BR sigaction (2)); and .IP * the zombie process was not reaped elsewhere in the program