Wait for child processes to terminate to eliminate zombie processes.