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

wait()

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.


drago@scri.fsu.edu
Jan. 1997