diff options
author | Peter Wu <lekensteyn@gmail.com> | 2013-01-29 00:12:45 +0100 |
---|---|---|
committer | Peter Wu <lekensteyn@gmail.com> | 2013-01-29 00:12:45 +0100 |
commit | 67b215d97a49ec05d305f66c14786d0a41954b18 (patch) | |
tree | af0e0c51a5907f53dca3e4266782d12b95fc80b0 | |
parent | 677694425b53b0a15e6ea09cb7554ede3ff42c6d (diff) | |
download | c-files-67b215d97a49ec05d305f66c14786d0a41954b18.tar.gz |
entropy-watcher: flush stdout after writing number
-rw-r--r-- | entropy-watcher.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/entropy-watcher.c b/entropy-watcher.c index 6dc1b89..ecc2c3d 100644 --- a/entropy-watcher.c +++ b/entropy-watcher.c @@ -43,6 +43,7 @@ int main(int argc, char **argv) { buff[r - 1] = 0; avail = strtol(buff, NULL, 10); printf("%li (%+li)", avail, avail - prev); + fflush(stdout); prev = avail; poll(&pfd, 1, print_interval_ms); |