comparison cmu200/main.c @ 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 bd62be88259d
children 498b90f6e224
comparison
equal deleted inserted replaced
8:c873a36a16e6 9:6d7079a81e8b
20 argv[0]); 20 argv[0]);
21 exit(1); 21 exit(1);
22 } 22 }
23 open_target_serial(argv[1], argv[2]); 23 open_target_serial(argv[1], argv[2]);
24 set_serial_nonblock(0); 24 set_serial_nonblock(0);
25 setlinebuf(stdout); /* to allow logging with tee */
25 init_cmu200(); 26 init_cmu200();
26 if (argc > 3) 27 if (argc > 3)
27 bind_socket_pathname = argv[3]; 28 bind_socket_pathname = argv[3];
28 else 29 else
29 bind_socket_pathname = default_socket_pathname; 30 bind_socket_pathname = default_socket_pathname;