waitpid(PID,FLAGS)

Waits for a particular child process to terminate
and returns the pid of the deceased process, or -1
if there is no such child process. Not supported on
MS-DOS.