Fix missing waitpid() call