mirror of https://github.com/mkerrisk/man-pages
wait.2: wait() and waitpid() block the calling thread (not process)
Reported-by: Robin Kuzmin <kuzmin.robin@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
f3e8dec6c7
commit
9c8ed83514
|
@ -109,7 +109,7 @@ calls is termed
|
||||||
.SS wait() and waitpid()
|
.SS wait() and waitpid()
|
||||||
The
|
The
|
||||||
.BR wait ()
|
.BR wait ()
|
||||||
system call suspends execution of the calling process until one of its
|
system call suspends execution of the calling thread until one of its
|
||||||
children terminates.
|
children terminates.
|
||||||
The call
|
The call
|
||||||
.I wait(&wstatus)
|
.I wait(&wstatus)
|
||||||
|
@ -123,7 +123,7 @@ waitpid(\-1, &wstatus, 0);
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
.BR waitpid ()
|
.BR waitpid ()
|
||||||
system call suspends execution of the calling process until a
|
system call suspends execution of the calling thread until a
|
||||||
child specified by
|
child specified by
|
||||||
.I pid
|
.I pid
|
||||||
argument has changed state.
|
argument has changed state.
|
||||||
|
|
Loading…
Reference in New Issue