my $pid; if (!defined ($pid = fork)) { die "Unable to fork: $!"; } elsif (! $pid) { # this is the branch for the child process # do stuff in the child process exit; # terminate the child process }
In reply to Re: how to create independent process?
by andThenThereWasPERL
in thread how to create independent process?
by swaroop
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |