- or download this
use strict;
use warnings;
...
$pm->finish;
}
}
- or download this
$s->wait_children;
if ($s->{max_proc}) {
my $pid=fork();
- or download this
$s->wait_children;
$s->pre_fork;
if ($s->{max_proc}) {
my $pid=fork();
- or download this
sub run_pre_fork { my ($s,$code)=@_;
$s->{pre_fork}=$code;
...
sub pre_fork { my ($s)=@_;
$s->{pre_fork}->() if ref($s->{pre_fork}) eq 'CODE';
}