summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2019-11-30 10:37:47 +0100
committerSimon Rettberg2019-11-30 10:37:47 +0100
commit0f73434a84cb3105f260749e4b09e6a4f6a3ee19 (patch)
treeff8445c73d93bdace5f2a8e42df81cd4f5118be9
parentFormatting (diff)
downloadjawol-master.tar.gz
jawol-master.tar.xz
jawol-master.zip
Force stdout line buffered on -lHEADv29r2v29r1master
-rw-r--r--jawol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/jawol.c b/jawol.c
index 4fdd83f..e227cac 100644
--- a/jawol.c
+++ b/jawol.c
@@ -159,6 +159,8 @@ int main(int argc, char **argv)
return 1;
}
if ( dolisten ) {
+ // Make stdout line buffered, in case this gets piped through something
+ setvbuf( stdout, NULL, _IOLBF, 500 );
return wolisten( dolisten > 1 );
}
if ( gotip && gotif ) {