Your assertion (assumption?) that the child should not be able to execute that print line is false. Why should it not when it is outside the entire "if" block?
In reply to Re: fork - child executes code outside of block
by hippo
in thread fork - child executes code outside of block
by cyadav
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |