1 #include <sys/wait.h> 2 wait(int * status)3 pid_t wait(int* status) { 4 return waitpid((pid_t)-1, status, 0); 5 } 6