[In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]
Synopsis: duplicate output and header while forking State-Changed-From-To: open-closed State-Changed-By: marc State-Changed-When: Wed Jul 21 09:43:25 PDT 1999 State-Changed-Why: Your code is buggy. As the stdio man page on most platform says, you need to ensure you flush certain types of buffers before forking or the results are undefined. eg. fflush(stdout)