By default, the stdio functions will buffer their output (8k is normal) if the output device is not a tty. It's easy to fix this in the source, either by calling fflush(), or by setting the buffering properties for the stream with setvbuf(). A quick test shows that laundering the output of a command with tee can also remove the buffering.
--On Monday, June 10, 2002 1:55 AM +0200 Shadow Walker <[EMAIL PROTECTED]> wrote: > I'm writing a Front end for X-Mame and I've got a problem: when I try to > audit all roms, I run the command "xmame -verifyroms 2>/dev/null" and > instead of having every result comming smoothly, I've got nothing for 10 > to20 second then a lot of information then again nothing for 10~20 sec > and so forth, when I'm running this command in a terminal, everything > goes fine. I thinks that It's maybe a problem of buffer but I'm not > really sure, does anyone already got a similar problem? > > Shadow Walker > http://gxmame.sourceforge.net _______________________________________________ Xmame mailing list [EMAIL PROTECTED] http://toybox.twisted.org.uk/mailman/listinfo/xmame
