blob: 82fac8df3012802e3d56767aa54ff7b335510add (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
|