Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://927137]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2017-08-24 03:19 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (363 votes). Check out past polls.