make test on waitpid > 0 rather than -1