Correct exit status checks (status 0 returned by wait() doesn't have to mean