waitpid takes an int*, not an int