aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/09_x_zap_flush_stdout.dpatch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/09_x_zap_flush_stdout.dpatch')
-rwxr-xr-xdebian/patches/09_x_zap_flush_stdout.dpatch34
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/09_x_zap_flush_stdout.dpatch b/debian/patches/09_x_zap_flush_stdout.dpatch
new file mode 100755
index 0000000..82fac8d
--- /dev/null
+++ b/debian/patches/09_x_zap_flush_stdout.dpatch
@@ -0,0 +1,34 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+
+## 09_x_zap_flush_stdout.dpatch by Sebastian Schmidt <yath@yath.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Make [stc]zap flush stdout after writing status line
+
+@DPATCH@
+diff -urNad linuxtv-dvb-apps-1.1.1+rev1207~/util/szap/czap.c linuxtv-dvb-apps-1.1.1+rev1207/util/szap/czap.c
+--- linuxtv-dvb-apps-1.1.1+rev1207~/util/szap/czap.c 2008-06-17 01:44:38.000000000 +1000
++++ linuxtv-dvb-apps-1.1.1+rev1207/util/szap/czap.c 2008-06-17 20:44:19.000000000 +1000
+@@ -252,9 +252,10 @@
+ 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 -urNad linuxtv-dvb-apps-1.1.1+rev1207~/util/szap/szap.c linuxtv-dvb-apps-1.1.1+rev1207/util/szap/szap.c
+--- linuxtv-dvb-apps-1.1.1+rev1207~/util/szap/szap.c 2008-06-17 01:44:38.000000000 +1000
++++ linuxtv-dvb-apps-1.1.1+rev1207/util/szap/szap.c 2008-06-17 20:44:19.000000000 +1000
+@@ -287,6 +287,7 @@
+ if (status & FE_HAS_LOCK)
+ printf("FE_HAS_LOCK");
+ printf("\n");
++ fflush(stdout);
+
+ if (exit_after_tuning && ((status & FE_HAS_LOCK) || (++timeout >= 10)))
+ break;