--- 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
en.
--
Summary: printf + sleep = problems with output buffer
Product: gcc
Version: 4.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: alexcastan at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37785