in reply to Re: forking and exec
in thread forking and exec

why do you need to care about the return signals? I thought exec didn't care and only returned anything if the command was found?

Replies are listed 'Best First'.
Re^3: forking and exec
by kennethk (Abbot) on Oct 22, 2013 at 16:31 UTC

    exec never returns, but any child that doesn't get reaped becomes a zombie_process. See perlipc, wait, waitpid. The easiest way to handle it is with $SIG{CHLD} = "IGNORE";, which tells perl to autoreap.


    #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

      Thanks. That explains the left over jobs that crash the system. Looks like I have some more book learnin' to do to fully grok this.