Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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

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 :)

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 exploiting the Monastery: (4)
As of 2016-10-01 17:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (3 votes). Check out past polls.