Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: forking and exec

by kennethk (Monsignor)
on Oct 22, 2013 at 16:31 UTC ( #1059234=note: print w/ replies, xml ) Need Help??


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

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.


Comment on Re^3: forking and exec
Download Code
Re^4: forking and exec
by Anonymous Monk on Oct 22, 2013 at 19:51 UTC
    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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1059234]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-07-28 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (192 votes), past polls