.\" 2005-05-10, mtk, __W* flags can't be used with waitid()
.\" 2008-07-04, mtk, removed erroneous text about SA_NOCLDSTOP
.\"
-.TH WAIT 2 2013-09-04 "Linux" "Linux Programmer's Manual"
+.TH WAIT 2 2014-08-19 "Linux" "Linux Programmer's Manual"
.SH NAME
wait, waitpid, waitid \- wait for process to change state
.SH SYNOPSIS
.I id
has yet changed state;
on error, \-1 is returned.
-.\" FIXME: As reported by Vegard Nossum, if infop is NULL, then waitid()
+.\" FIXME As reported by Vegard Nossum, if infop is NULL, then waitid()
.\" returns the PID of the child. Either this is a bug, or it is intended
.\" behavior that needs to be documented. See my Jan 2009 LKML mail
.\" "waitid() return value strangeness when infop is NULL".
+.PP
Each of these calls sets
.I errno
to an appropriate value in the case of an error.
this table fills, it will not be possible to create further processes.
If a parent process terminates, then its "zombie" children (if any)
are adopted by
-.BR init (8),
+.BR init (1),
which automatically performs a wait to remove the zombies.
POSIX.1-2001 specifies that if the disposition of
Do not wait for children of other threads in
the same thread group.
This was the default before Linux 2.4.
-.PP
+.SS C library/kernel ABI differences
The raw
.BR waitid ()
-system call takes a fith argument, of type
+system call takes a fifth argument, of type
.IR "struct rusage\ *" .
If this argument is non-NULL,
then it is used to return resource usage information about the child,
.BR credentials (7),
.BR signal (7)
.SH COLOPHON
-This page is part of release 3.67 of the Linux
+This page is part of release 3.79 of the Linux
.I man-pages
project.
A description of the project,