I\'ve been trying to figure out how the fork-exec mechanism is used inside Linux. Everything was going on according to the plan until some web pages started to confuse me.<
In the child branch of a fork(), it is normally incorrect to use
exit(), because that can lead to stdio buffers being flushed twice,
and temporary files being unexpectedly removed.