Recover or die:
if ($pid = fork) { # parent } else { die "cannot fork: $!" unless defined $pid; # child }
In reply to Re^3: Learning to use fork()
by markong
in thread Learning to use fork()
by ovedpo15
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |