Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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:

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.

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

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-11-26 18:34 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (705 votes), past polls