Re: Apache::ASP fork

1999-11-09 Thread Eric L. Brine
% 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

Re: Apache::ASP fork

1999-11-09 Thread Joshua Chamas
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

Apache::ASP fork

1999-11-08 Thread Jason Horman
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