%
if($pid = fork) {
%
DONE...
%
} elsif(defined $pid) {
system("java PursuitSpider stdout.txt");
system("gzip stdout.txt");
}
%
ok but I end up with a defunct libhttpd.ep process left around.
You need to exit after the second system(). However, you have a
presumably huge
Jason Horman wrote:
I am forking b/c PursuitSpider takes about 2 hrs to run. The above works
ok but I end up with a defunct libhttpd.ep process left around. I tried
to setpgrp(0, $$) and POSIX::setsid() from within the child code but
neither seem to detach correctly. Is there something else
I am trying to do a simple fork from within a Apache::ASP script.
The code is as follows:
%
if($pid = fork) {
%
DONE...
%
} elsif(defined $pid) {
system("java PursuitSpider stdout.txt");
system("gzip stdout.txt");
}
%
I am forking b/c PursuitSpider takes about 2 hrs to run. The