in reply to Re: basic fork question
in thread basic fork question
This one is more fail-safe, since you omitted the situation of a fork() failure.if (!defined($pid = fork())) { # FAILURE # parent process } elsif ($pid == 0) { # SUCCESS # child process } else { # SUCCESS # parent process }
|
|---|