Recurrent output of printf() to stdout each time fork() is invoked allthough printf() is invoked prior to fork(). And why does '\n' fixes this?
Why does a program with fork() sometimes print its output multiple times?