previous | start | next

waitpid

      pid_t waitpid(pid_t pid, int *status, int option)
   

If option is 0,

It is also possible to wait for a child that has stopped by setting option to the appropriate value.

If no unwaited for children exist, waitpid returns -1 without waiting.



previous | start | next