summaryrefslogtreecommitdiffstats
path: root/jawol.c
diff options
context:
space:
mode:
Diffstat (limited to 'jawol.c')
-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 ) {