wait()
Waiting for a child: system call is
A process that calls wait() can:
- block (if all of its children are still running)
- return immediately with the termination status of a child (if a child has terminated and is waiting for its termination status to be fetched)
- return immediately with an error (it it doesn’t have any child processes)
More details in a few weeks, when we cover Chapter 11 of Wang