[Developers] want option to set stdout+stderr line-buffered for
debugging
Jonathan Thornburg
jthorn at aei.mpg.de
Fri May 26 12:19:55 CDT 2006
Hi,
A common problem in Cactus debugging is that stdout and/or stderr
are buffered by default, so the "last message printed before the error"
may not actually be the last message.
Would it be useful to have a flesh command-line option, perhaps
-linebuf, to set stdout and stderr to be line buffered, so we could
trust the sequence in which messages (all presumably ending with \n)
appear to accurately reflect the order of execution?
notes:
* Less buffering costs a bit more CPU, so I'm not proposing that
this be the default, "just" that it be an available option for
debugging purposes.
* In theory we could go all the way down to no buffering at all,
but I think line buffering should be adequate.
ciao,
--
-- Jonathan Thornburg <jthorn at aei.mpg.de>
Max-Planck-Institut fuer Gravitationsphysik (Albert-Einstein-Institut),
Golm, Germany, "Old Europe" http://www.aei.mpg.de/~jthorn/home.html
"Washing one's hands of the conflict between the powerful and the
powerless means to side with the powerful, not to be neutral."
-- quote by Freire / poster by Oxfam
More information about the Developers
mailing list