R
Rex Gustavus Adolphus
Hi
I have a parent program, that should loop (eternally), and start other
programs without waiting for them, so many programs can be started at
the same time by the parent.
Is it true that it's not necessary to handle childsignals if you use
this type of logic when you fork processes:
if ($pid = fork) {
# parent
} elsif (defined $pid) {
# child
exec $agent
or die "Can't do $agent";
} else {
# fork error
die "can't fork\n";
}
I have a parent program, that should loop (eternally), and start other
programs without waiting for them, so many programs can be started at
the same time by the parent.
Is it true that it's not necessary to handle childsignals if you use
this type of logic when you fork processes:
if ($pid = fork) {
# parent
} elsif (defined $pid) {
# child
exec $agent
or die "Can't do $agent";
} else {
# fork error
die "can't fork\n";
}