changeset 9:6d7079a81e8b

fc-cmu200d: do setlinebuf(stdout) for easier logging with tee
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 May 2017 18:39:49 +0000
parents c873a36a16e6
children 34a66394bea0
files cmu200/main.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cmu200/main.c	Sun May 21 18:20:55 2017 +0000
+++ b/cmu200/main.c	Sun May 21 18:39:49 2017 +0000
@@ -22,6 +22,7 @@
 	}
 	open_target_serial(argv[1], argv[2]);
 	set_serial_nonblock(0);
+	setlinebuf(stdout);	/* to allow logging with tee */
 	init_cmu200();
 	if (argc > 3)
 		bind_socket_pathname = argv[3];