in reply to Re^3: fork - child executes code outside of block
in thread fork - child executes code outside of block
The question wasn't necessarily directed at you originally, but you showed that it applies to you too. Why do you arbitrarily split the parent code in three (partly before the if, partly in the if, partly after the if)? And why do you hide the error handling code far from where the error code occurred?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: fork - child executes code outside of block
by tybalt89 (Monsignor) on Mar 28, 2018 at 19:53 UTC | |
by ikegami (Patriarch) on Mar 29, 2018 at 12:55 UTC |