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

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