This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/37785] printf without '\n' + sleep = problems with output buffer



------- Comment #3 from alexcastan at gmail dot com  2008-10-09 20:24 -------
Then the second problem it is also the normal behavior. The fork()
makes child inherit the unprinted parent buffer, then two similar buffers get
print later.

  10 9 8 7 6 5 4 3 2 1 0   I'm the child
  10 9 8 7 6 5 4 3 2 1 0   I'm the parent


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37785


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]