in reply to Re^2: fork - child executes code outside of block
in thread fork - child executes code outside of block
I just made the minimum change to fix the problem.
It's not my favorite way of doing fork, which is:
if( my $pid = fork ) { # parent } elsif( defined $pid ) { # child exit; } else { die "$! on fork"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: fork - child executes code outside of block
by ikegami (Patriarch) on Mar 28, 2018 at 19:38 UTC | |
by tybalt89 (Monsignor) on Mar 28, 2018 at 19:53 UTC | |
by ikegami (Patriarch) on Mar 29, 2018 at 12:55 UTC |