http://qs321.pair.com?node_id=409218


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.