in reply to using fork

My first reaction reading your code was exactly the same as the previous monks': why would you want to fork if the parent is just going to wait for the child to complete?

Replies are listed 'Best First'.
Re^2: using fork
by boftx (Deacon) on Oct 15, 2013 at 06:43 UTC

    Indeed, why fork when spooning can be so much fun? (There is a bad joke about forking, spooning and the creation of unexpected child processes in there somewhere.)

    The answer to the question "Can we do this?" is always an emphatic "Yes!" Just give me enough time and money.