Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $pid = fork;
- if (!$pid) {
- exec("sleep 2");
- }
- waitpid($pid, WNOHANG);
- $retCode = $?;
- printf "%04xn", $retCode;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement