From f88d37c830e35df4594c30968c08c16db8392e9e Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 27 Jan 2015 20:44:54 +0100 Subject: idevicesyslog: Flush stdout whenever encountering a line break --- tools/idevicesyslog.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/idevicesyslog.c') diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index 7aa6126..aee702b 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c @@ -46,6 +46,9 @@ static syslog_relay_client_t syslog = NULL; static void syslog_callback(char c, void *user_data) { putchar(c); + if (c == '\n') { + fflush(stdout); + } } static int start_logging(void) -- cgit v1.1-32-gdbae