Skip to content

Commit

Permalink
clarify meaning of waitpid returning 0 [perl #127080]
Browse files Browse the repository at this point in the history
  • Loading branch information
mauke committed Jan 5, 2016
1 parent a6b6b8e commit 237516c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pod/perlfunc.pod
Expand Up @@ -9051,8 +9051,9 @@ X<waitpid>
=for Pod::Functions wait for a particular child process to die

Waits for a particular child process to terminate and returns the pid of
the deceased process, or C<-1> if there is no such child process. On some
systems, a return value of 0 indicates that there are processes still running.
the deceased process, or C<-1> if there is no such child process. A
non-blocking wait (with L<WNOHANG|POSIX/WNOHANG> in FLAGS) can return 0 if
there are child processes matching PID but none have terminated yet.
The status is returned in C<$?> and C<${^CHILD_ERROR_NATIVE}>.

A PID of C<0> indicates to wait for any child process whose process group ID is
Expand Down

0 comments on commit 237516c

Please sign in to comment.