Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. $pid = fork;
  2. if (!$pid) {
  3. exec("sleep 2");
  4. }
  5. waitpid($pid, WNOHANG);
  6. $retCode = $?;
  7. printf "%04xn", $retCode;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement