Tosh,
On Tuesday 09 February 2010 14:21:57 Tosh Cooey wrote:
Hi after much trial and all error I am seeing that the browser
connection closing is also stopping my subprocess.
I don't know what you are trying to achieve and I don't use
Apache2::Subprocess much. What I do to fork off
You aren't going to like this, and maybe what you're doing is for a
really complex situation, but it really shouldn't be so complex to just
spawn off a long running process that you don't care to ever hear back
from, honestly.
Tosh
Torsten Förtsch wrote:
Tosh,
On Tuesday 09 February 2010
: modperl@perl.apache.org
Subject: Re: Apache2::SubProcess subprocess not subprocessing properly
Actually my solution to this problem was pretty rational. I
just turned
mod_perl off for this particular program.
Files ~ (?!myfork)\.pl$
PerlHandler ModPerl::Registry
/Files
Will I
Actually my solution to this problem was pretty rational. I just turned
mod_perl off for this particular program.
Files ~ (?!myfork)\.pl$
PerlHandler ModPerl::Registry
/Files
Will I a have possible performance problems? Sure, but nothing a few
more $25/month servers can't fix, and it
On Tuesday 09 February 2010 14:21:57 Tosh Cooey wrote:
use POSIX 'setsid';
if( fork ) { POSIX::_exit 0; CORE::exit 0 }
chdir '/'or die Can't chdir to /: $!;
simplest is to fork() another time to break the parent-child relationship.
Keep in mind that you make your service
Hi after much trial and all error I am seeing that the browser
connection closing is also stopping my subprocess.
The main ModPerl::Registry program looks like this:
### file.pl ###
use Apache2::SubProcess ();
use JSON();
main(shift);
sub main {
my $r = shift;
...
$r-spawn_proc_prog