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.
Wed Sep 14 10:06:31 BST 1994