Open GoogleCodeExporter opened 8 years ago
Unfortunately it is quite likely not possible - the output generating
application that is creating the stdout stream is in control. stdout is only
line buffered on windows if it bis detected as going to an interactive device,
so once it is piped / redirected to a file, it becomes block buffered. The way
to overwrite that behaviour is by setting no buffering within the generating
application, eg
setvbuf(stdout,NULL,_IONBF,1024);
or by regularly flushing the buffer
fflush(stdout);
but both of those mean modifying the generating application.
Original comment by nmw01...@googlemail.com
on 27 Aug 2014 at 10:26
Original issue reported on code.google.com by
kge...@gmail.com
on 27 Jun 2013 at 6:14