> >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