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 will 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