From cd32ec849d99d6e7a84a04b4c124ce9e9a66105d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 28 May 2016 08:51:52 -0500 Subject: [PATCH] wait.2: Since Linux 4.7, __WALL is implied if child being ptraced Signed-off-by: Michael Kerrisk --- man2/wait.2 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/man2/wait.2 b/man2/wait.2 index 565998e07..7ed8affdb 100644 --- a/man2/wait.2 +++ b/man2/wait.2 @@ -522,6 +522,14 @@ type ("clone" or "non-clone"). Do not wait for children of other threads in the same thread group. This was the default before Linux 2.4. +.PP +Since Linux 4.7, +.\" commit bf959931ddb88c4e4366e96dd22e68fa0db9527c +.\" prevents cases where an unreapable zombie is created if +.\" /sbin/init doesn't use __WALL. +the +.B __WALL +flag is automatically implied if the child is being ptraced. .SS C library/kernel differences .BR wait () is actually a library function that (in glibc) is implemented as a call to