On 4/4/07, Igor Sutton Lopes <[EMAIL PROTECTED]> wrote: snip
unless (fork) {
snip
The fork function has three returns: undef, zero, and non-zero. It
returns 0 to the child and a pid that is non-zero to the parent on
success or undef to the parent on failure. It is important to catch
this error:
my $pid = fork;
die "fork failed" unless defined $pid;
unless ($pid) {
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
