From 0e6997b6fcb9bb89c961597123945bc0075445c9 Mon Sep 17 00:00:00 2001 From: Nikos Tsipinakis Date: Thu, 24 Dec 2020 15:39:44 +0200 Subject: [PATCH] Flush stdout when using -print This ensures writes happen on every new notification when output is redirected to a file. Closes #794 --- src/notification.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/notification.c b/src/notification.c index 5396fe7..b2d70c7 100644 --- a/src/notification.c +++ b/src/notification.c @@ -98,6 +98,7 @@ void notification_print(const struct notification *n) printf("\n"); } printf("}\n"); + fflush(stdout); } /* see notification.h */