with this buffering disabled fancier logging scripts will be able to process each line as it is output.
Signed-off-by: Øyvind Harboe <[email protected]> --- src/main.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/main.c b/src/main.c index a71977d..9c7191d 100644 --- a/src/main.c +++ b/src/main.c @@ -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); } -- 1.7.0.4 _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
