oops missing include, and waitpid sometimes returns 0 as well