perlfunc
gods
<P>
wait - wait for any child process to die
<P>
<HR>
<P>
wait
<P>
<HR>
<P>
Waits for a child process to terminate and returns the pid of the deceased
process, or <CODE>-1</CODE> if there are no child processes. The status is returned in <CODE>$?</CODE>.
<HR>