MentOS
0.8.0
The Mentoring Operating System
|
Functions | |
pid_t | waitpid (pid_t pid, int *status, int options) |
Suspends the execution of the calling thread until a child specified by pid argument has changed state. More... | |
pid_t | wait (int *status) |
Suspends the execution of the calling thread until ANY child has changed state. More... | |
pid_t wait | ( | int * | status | ) |
Suspends the execution of the calling thread until ANY child has changed state.
status | Variable where the new status of the child is stored. |
Suspends the execution of the calling thread until a child specified by pid argument has changed state.
pid | Se details below for more information. |
status | Variable where the new status of the child is stored. |
options | Waitpid options. |
By default, waitpid() waits only for terminated children, but this behavior is modifiable via the options argument, as described below. The value of pid can be: