I'm running a test on a Unix box (AIX 4.3). I have a process that will fork to call other processes on Unix, and I'm using waitpid to determine when the children are finished, but I'm concerned that I might run into problems.
The scenario is that I call fork several times, and inside each child process I use 'system' to call another process. I think my children are automatically reaped, so my concern is this: Is is possible that another process could be launched on Unix that could pick up the PID of one of my dead children, before I know that the child is dead?