Next: exit() Up: Running UNIX Commands from C Previous: fork()


int wait (int *status_location) - will force a parent process to wait for a child process to stop or terminate. wait() return the pid of the child or -1 for an error. The exit status of the child is returned to status_location.
Fri May 20 13:40:49 BST 1994