FreeCalypso > hg > freecalypso-sw
comparison rvinterf/rvtdump.c @ 127:f4f0c8738dcb
rvtdump: satisfactory handling of output from Pirelli's fw
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 31 Oct 2013 23:08:59 +0000 |
parents | 811b138f1bed |
children | 56b53c289785 |
comparison
equal
deleted
inserted
replaced
126:811b138f1bed | 127:f4f0c8738dcb |
---|---|
39 goto usage; | 39 goto usage; |
40 open_target_serial(argv[optind]); | 40 open_target_serial(argv[optind]); |
41 } | 41 } |
42 | 42 |
43 set_serial_nonblock(0); | 43 set_serial_nonblock(0); |
44 setlinebuf(stdout); | |
44 for (;;) { | 45 for (;;) { |
45 FD_ZERO(&fds); | 46 FD_ZERO(&fds); |
46 FD_SET(target_fd, &fds); | 47 FD_SET(target_fd, &fds); |
47 c = select(target_fd+1, &fds, 0, 0, 0); | 48 c = select(target_fd+1, &fds, 0, 0, 0); |
48 if (c < 0) { | 49 if (c < 0) { |