Hi,
I'm try to spawn long-running process with help of following code :
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
Unfortunatelly it mystically stops working after ~10 mins.
This code from command-line works without any problems.
Can anybody point me in right direction ?
PS: my system settings
-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 configure
+d
Sincerely, Nikita Savin