projects
/
profile
/
ivi
/
can-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71bcd74
)
canbusload: flush output at the end of each cycle
author
Kurt Van Dijck
<kurt.van.dijck@eia.be>
Wed, 21 Dec 2011 09:08:57 +0000
(10:08 +0100)
committer
Oliver Hartkopp
<socketcan@hartkopp.net>
Tue, 10 Jan 2012 16:41:07 +0000
(17:41 +0100)
When canbusload is piped to another program, the output
is queued for several cycles. This patch will flush the output
explicitely.
Signed-off-by: Kurt Van Dijck <kurt.van.dijck@eia.be>
canbusload.c
patch
|
blob
|
history
diff --git
a/canbusload.c
b/canbusload.c
index
26323d2
..
2693b9e
100644
(file)
--- a/
canbusload.c
+++ b/
canbusload.c
@@
-201,6
+201,7
@@
void printstats(int signo)
}
printf("\n");
+ fflush(stdout);
alarm(1);
}