Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Keeping grandchild alive when mod_perl process is killed

by Zaxo (Archbishop)
on Nov 20, 2004 at 04:54 UTC ( #409218=note: print w/replies, xml ) Need Help??


in reply to Keeping grandchild alive when mod_perl process is killed

I haven't tried this with Apache/mod_perl, but it might work to call POSIX::setsid() in the first child. That is how daemons liberate themselves from their parent process.

After Compline,
Zaxo

  • Comment on Re: Keeping grandchild alive when mod_perl process is killed

Replies are listed 'Best First'.
Re^2: Keeping grandchild alive when mod_perl process is killed
by etcshadow (Priest) on Nov 20, 2004 at 05:38 UTC
    I think it's suppose to be in the grandchild (at least the docs for setsid indicate that you should do it in a child of init), but you're totally right: that's exactly what I was missing. Thanks a bunch, man!
    ------------ :Wq Not an editor command: Wq
      For future archaeologists' sakes (saken? saki?), could you post the working code snippet?

      Thanks,
      mG.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2021-11-28 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?