redirect_to("Prev_page.html") if fork();
close STDIN; close STDERR; close STDOUT;
use POSIX 'setsid';
setsid or die 'cant start new session';
# Long-running code here
####
-bash-2.05b# uname -a
FreeBSD www3 4.8-RC FreeBSD 4.8-RC #0: Tue Mar 11 15:00:17 GMT 2003 netwave@www3:/usr/obj/usr/src/sys/GENERIC i386
-bash-2.05b# perl -v
This is perl, v5.8.0 built for i386-freebsd
...
[Tue Mar 11 16:24:04 2003] [notice] Apache/1.3.26 (Unix) mod_perl/1.26 mod_throttle/3.1.2 PHP/4.2.2 mod_ssl/2.8.10 OpenSSL/0.9.6f configured