1 until (-1 == waitpid(-1, WNOHANG)); #### sub reap { waitpid(-1); return $?; }