Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Best way to kill a child process

by MidLifeXis (Monsignor)
on Sep 21, 2011 at 13:08 UTC ( #927137=note: print w/ replies, xml ) Need Help??

in reply to Best way to kill a child process

See previous nodes (press Search after it loads) on the subject as well. In Unix they are called zombie processes.

What you are seeing is that a data structure containing exit information from the process that died is waiting to be read by the parent process. The spot that the OS stores this information is in the process table (well, close enough for this discussion). You need to use wait or waitpid to capture the information. These functions tell the OS that it can now release the information and clear that slot in the process table.


Comment on Re: Best way to kill a child process

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://927137]
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: (7)
As of 2015-11-26 00:31 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (693 votes), past polls