12 echo "check child status pid $pid\n";
13 $ret = pcntl_waitpid($pid, $status, WNOHANG | WUNTRACED);
16 $exitcode = pcntl_wexitstatus($status);
17 echo " just exited with status $exitcode\n";
20 } else if ($ret == 0) {
27 } while (time() < $start + 3);
28 echo "child wait done\n";
35 echo "hi this is the child\n";