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 1
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 proce
sten Förtsch
> Cc: 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.
>
>
>PerlHandler ModPerl::
Actually my solution to this problem was pretty rational. I just turned
mod_perl off for this particular program.
PerlHandler ModPerl::Registry
Will I a have possible performance problems? Sure, but nothing a few
more $25/month servers can't fix, and it saves me all the aggravation of
t
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 v
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 ('