A child process is terminated when the parent process terminates. Therefore, the parent process must check the status of its child processes before exiting. This is done using the DEC C RTL function wait.