in reply to fork question

The first two replies are (clearly) correct, but if you are executing parent code in the child, it might be that you do not exit in the child. In that case the child may continue with parent code.

traveler