I've got a *bunch* of code that I've been rewriting recently and ran
into a rather weird problem.

it won't fork.

If I write the following:

foreach my $file ( @$files ) {
  my $pid = fork();
  print "$pid --> $file\n";
  [....]
}

I will get an output of:
0 --> file_one
3242 --> file_one
0--> file_two

but no 3243-->file_two.

Repeated print statements later on in the job continue to indicate that
this is not forking correctly.

I've been changing a number of things over to objects and references,
but I can't see anyway that this would interfere with something so
fundamental.

Unfortunately, perl -d doesn't work well for forks.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to