[Issue 2186] Out of order in stdout

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 30 19:29:31 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2186


andrei at metalanguage.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from andrei at metalanguage.com  2008-06-30 21:29 -------
"It's not a bug, it's a feature". It's simple, really. The pipe transforms
stdio for the D program from line-buffered to block-buffered. The writefln call
does not flush the stream, and that's about what happens. The same happens in a
C program using printf and system.

To fix, you may want to insert calls to fflush(stdout) after the writes.


-- 



More information about the Digitalmars-d-bugs mailing list