There's a subtle bug...
Isn't doom already taking care of the 'fork() failed' case (returning undef) with this line?
... } else { # this is child code die "cannot fork: $!" unless defined $pid; # <-- ...
In reply to Re^3: Process Management
by almut
in thread Process Management
by koolgirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |