Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

mod_perl2 setsid sometimes fails

by david2008 (Scribe)
on Jun 25, 2012 at 09:16 UTC ( #978157=perlquestion: print w/ replies, xml ) Need Help??
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

Comment on mod_perl2 setsid sometimes fails
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 :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://978157]
Approved by cjb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (13)
As of 2014-09-23 21:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (241 votes), past polls