Flush stdout when using -print

This ensures writes happen on every new notification when output is
redirected to a file.

Closes #794
This commit is contained in:
Nikos Tsipinakis 2020-12-24 15:39:44 +02:00
parent a89287cb3e
commit 0e6997b6fc

View File

@ -98,6 +98,7 @@ void notification_print(const struct notification *n)
printf("\n"); printf("\n");
} }
printf("}\n"); printf("}\n");
fflush(stdout);
} }
/* see notification.h */ /* see notification.h */