http://www.perlmonks.org?node_id=978157

david2008 has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I have a mod_perl application which runs a background script and exits.
The background script is run by fork.
In the child the function setsid is called.
This works for 99% of times.
Sometimes the setsid function fails. I want to understand why it fails and what can be done against it.
I use perl 5.10.1,mod_perl 2.05 and apache 2.2.20.
Thanks,
David

Replies are listed 'Best First'.
Re: mod_perl2 setsid sometimes fails
by Anonymous Monk on Jun 25, 2012 at 09:53 UTC
    Increase all logging verbosity options, if all else fails, use strace
      Thanks for your reply.
      May you please expand about which verbosity options i can increase?

        May you please expand about which verbosity options i can increase?

        Sorry, I can't. It would require that I search mod_perl manual, apache manual ... and also guess what else you're using

        strace is the big hammer :)