Mail Archives: djgpp/2010/04/14/16:26:14
> From: "Rod Pemberton" <do_not_have AT havenone DOT cmm>
> Date: Wed, 14 Apr 2010 14:22:59 -0400
> Bytes: 2283
>
> I've noticed that both John's TSR and DJGPP's redir.exe don't interleave
> stderr and stdout messages the way they are emitted to the screen. Both
> seem to write out stderr messages to the file first followed by stdout.
Actually, redir.exe does nothing of the kind. In particular, it
doesn't write anything, and thus cannot control the order in which
stdout and stderr output are interleaved. What redir.exe does is just
redirect stderr to the same file or device as stdout. The actual
writes are done by the program that is invoked under redir.exe.
It could be that you get the _impression_ that this is what redir.exe
does, because stderr is usually unbuffered, and so tends to be flushed
by the library and the OS sooner than stdout. But this is something
redir.exe has no control of, and cannot change, the way it was
designed and implemented.
- Raw text -