- or download this
my @child_info;
foreach my $params (@params_for_children)
...
die;
}
}
- or download this
sub DESTROY {
my $self = shift;
...
kill 'TERM' => $self->{pid};
}
}
- or download this
sub spawn {
my $self = shift;
...
$self->{parent_pid} = $$;
my $pid = fork;
# ...