Wait for a process to change status
WaitPidFlag
Controls the behavior of waitpid.
waitpid
WaitStatus
Possible return values from wait() or waitpid().
wait()
waitpid()
wait
Wait for any child process to change status or a signal is received.