Well, I've just tried it now and it works
#!/usr/bin/perl use strict; use warnings; use CGI; my $q = CGI->new; print $q->header; if (my $pid = fork ) { print "Hello, world - PID $pid\n"; exit; }else{ close STDOUT; close STDERR; close STDIN; sleep(20); exit; }
I have verified that the script is still running: ps auxx | grep perl
In reply to Re^3: Problems with flushing after fork()
by ahmad
in thread Problems with flushing after fork()
by smiffy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |