jalebie has asked for the wisdom of the Perl Monks concerning the following question:
eval 'exec ${PWPROD}/${ARCH}/perl/bin/perl -w -S $0 ${1+"$@"}' if 0; use strict; my $pid = fork; if ($pid == 0) { # child print "in child process \n"; exit 1; } elsif ( $pid > 0 ) { # parent print "in parent \n"; } else { # fork error print "fork command failed with code $pid \n"; exit 1; }
On Win2000 I get the following error message:in parent in child process
fork command failed with code -1214 in child process
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Fork cmd in perl
by wog (Curate) on Sep 17, 2001 at 22:57 UTC |