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 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 need to do?
-jason
[EMAIL PROTECTED]
[EMAIL PROTECTED]