logging: turn of stdout/stderr buffering
with this buffering disabled fancier logging scripts will be able to process each line as it is output. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>__archive__
parent
61780558e1
commit
241fd0b5a8
|
@ -35,5 +35,9 @@
|
|||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
/* disable buffering otherwise piping to logs causes problems work */
|
||||
setvbuf(stdout, NULL, _IONBF, 0);
|
||||
setvbuf(stderr, NULL, _IONBF, 0);
|
||||
|
||||
return openocd_main(argc, argv);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue