wait.2: Since Linux 4.7, __WALL is implied if child being ptraced

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-05-28 08:51:52 -05:00
parent ff82608eb6
commit cd32ec849d
1 changed files with 8 additions and 0 deletions

View File

@ -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