asdfgroup has asked for the wisdom of the Perl Monks concerning the following question:
Similar running program on the same server works without any problem (about 20 mins of execution).redirect_to("Prev_page.html") if fork(); #child here close STDIN; close STDERR; close STDOUT; # we inherit this filehandles from Apache. If we don't close, Apache w +ill wait for child use POSIX 'setsid'; setsid; #Change PGID. So Apache can't kill child (and won't know about it) # Long-running code here
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Problem with fork in CGI script (again)
by pzbagel (Chaplain) on Apr 26, 2003 at 16:17 UTC | |
Re: Problem with fork in CGI script (again)
by eduardo (Curate) on Apr 26, 2003 at 20:22 UTC | |
by merlyn (Sage) on Apr 26, 2003 at 22:55 UTC |