- or download this
foreach $item ( @array ) {
if( $pid = fork ) {
print "Forking off to $pid\n";
...
die "Can't fork: $!";
}
}
- or download this
sub REAPER {
my $waitedpid = wait;
$SIG{CHLD} = \&REAPER;
}
- or download this
if( $pid = fork ) {
print "Forking off to $pid\n";
- or download this
if( $pid = fork ) {
$SIG{CHLD} = \&REAPER;
print "Forking off to $pid\n";