waitpid() ???

Dave Decot decot at hpisod2.HP.COM
Wed Aug 15 10:26:26 AEST 1990


> >Does anyone have an idea exactly what [waitpid()] does?
> 
> waitpid() is a POSIX function:
> 
> 	int waitpid(int pid, int *status, int options)
> 
> where the `pid' argument is the process ID of the process to wait
> for, or WAIT_ANY to wait for any child;

WAIT_ANY does not exist in POSIX.  The correct value to wait for any child
is -1.

Dave Decot



More information about the Comp.unix.wizards mailing list