Checks the status of the child process before exiting. A child process is terminated when the parent process terminates. Format #include <wait.h> pid_t wait (int *status);