------- 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