[PATCH 3/6] [dvb-apps] dvb-apps: make zap flush stdout after status line

Jonathan McCrohan jmccrohan at gmail.com
Sun May 4 01:51:18 UTC 2014


Bug-Debian: http://bugs.debian.org/357126

Signed-off-by: Jonathan McCrohan <jmccrohan at gmail.com>
---
 util/szap/czap.c | 3 ++-
 util/szap/szap.c | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/util/szap/czap.c b/util/szap/czap.c
index f49c524..062545f 100644
--- a/util/szap/czap.c
+++ b/util/szap/czap.c
@@ -227,9 +227,10 @@ int monitor_frontend (int fe_fd, int human_readable)
 		if (status & FE_HAS_LOCK)
 			printf("FE_HAS_LOCK");
 
-		usleep(1000000);
 
 		printf("\n");
+		fflush(stdout);
+		usleep(1000000);
 
 		if (exit_after_tuning && (status & FE_HAS_LOCK))
 			break;
diff --git a/util/szap/szap.c b/util/szap/szap.c
index 90bdbfb..12f393c 100644
--- a/util/szap/szap.c
+++ b/util/szap/szap.c
@@ -204,6 +204,7 @@ static int monitor_frontend (int fe_fd, int dvr, int human_readable)
 		if (exit_after_tuning && ((status & FE_HAS_LOCK) || (++timeout >= 10)))
 			break;
 
+		fflush(stdout);
 		usleep(1000000);
 	} while (1);
 
-- 
1.9.2




More information about the pkg-vdr-dvb-devel mailing list