#! /bin/sh /usr/share/dpatch/dpatch-run ## 09_x_zap_flush_stdout.dpatch by Sebastian Schmidt ## ## 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;