in reply to Re^2: Problems with flushing after fork()
in thread Problems with flushing after fork()
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Problems with flushing after fork()
by smiffy (Pilgrim) on Feb 13, 2010 at 00:19 UTC |