[hamradio-commits] [dump1090] 24/389: With --raw fflush() at every output to avoid delays.

Matthew Ernisse mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:19:36 UTC 2014


This is an automated email from the git hooks/post-receive script.

mernisse-guest pushed a commit to branch master
in repository dump1090.

commit af4964d72f29674bbe7ca7e924ce8e9e7522c41b
Author: antirez <antirez at gmail.com>
Date:   Thu Jan 10 19:01:25 2013 +0100

    With --raw fflush() at every output to avoid delays.
---
 dump1090.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dump1090.c b/dump1090.c
index 1d60596..e50edd7 100644
--- a/dump1090.c
+++ b/dump1090.c
@@ -919,7 +919,10 @@ void displayModesMessage(struct modesMessage *mm) {
     for (j = 0; j < mm->msgbits/8; j++) printf("%02x", mm->msg[j]);
     printf(";\n");
 
-    if (Modes.raw) return; /* Enough for --raw mode */
+    if (Modes.raw) {
+        fflush(stdout); /* Provide data to the reader ASAP. */
+        return; /* Enough for --raw mode */
+    }
 
     printf("CRC: %06x (%s)\n", (int)mm->crc, mm->crcok ? "ok" : "wrong");
     if (mm->errorbit != -1)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git



More information about the pkg-hamradio-commits mailing list