Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^3: Create zombies on purpose

by eddor1614 (Beadle)
on Mar 17, 2011 at 15:30 UTC ( #893791=note: print w/replies, xml ) Need Help??

in reply to Re^2: Create zombies on purpose
in thread Create zombies on purpose

Of course, I was doing it right, but when perl exits, the Zombies disappears. So I was wrong. Thank you! Any way of leaving the zombies after the parent exits?

Replies are listed 'Best First'.
Re^4: Create zombies on purpose
by happy.barney (Pilgrim) on Mar 17, 2011 at 15:37 UTC
    Simplified: if process exits, all its children are turned to be children of process 1 (init) and that it will wait.
    You can for example replace <> with kill STOP => $$ but than it will be good to have possibility to terminate that process.
Re^4: Create zombies on purpose
by cdarke (Prior) on Mar 17, 2011 at 16:32 UTC
    No, because they are not zombies then, they are orphans.

    Anyway, a zombie is a process that has finished - it is only there to allow the parent to pick-up its exit code, there is almost nothing left of the original process (if memory serves me right, a zombie is only a couple of pages on Linux).

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://893791]
[choroba]: csh considered harmful
[erix]: no, I'm using bash :)
[marioroy]: :)
[marioroy]: I use the default and happens to be bash
[erix]: heh, I like the "Resolved" (Christiansen is really funny)
Discipulus is makita a reincarnation of grinder?
[erix]: I probably also need to understand TAP a bit better than I do

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2017-03-23 08:31 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (285 votes). Check out past polls.