Fork fails
Michael Still
mikal at stillhq.com
Thu Sep 19 21:52:54 EST 2002
On Thu, 19 Sep 2002, Martijn van Oosterhout wrote:
> You _are_ wait()ing on all the processes right? Remember, a process is not
> gone until it exits *and* the parent wait()s for it. There is some hack
> about ignoring SIGCHLD that may work but just doing a wait() when you know
> the process is done should be enough.
Hmmmmm. Ok, so the process still occupies a "process slot" (I don't know
if this is a real term) until someone asks for the result of the process,
by using wait(). Therefore, even if it is no longer running, I can have
ulimit pain.
Is my understanding of this correct?
Mikal
--
Michael Still (mikal at stillhq.com) UTC +10 hours
More information about the linux
mailing list