diff options
author | Nikias Bassen | 2015-01-27 20:44:54 +0100 |
---|---|---|
committer | Nikias Bassen | 2015-01-27 20:44:54 +0100 |
commit | f88d37c830e35df4594c30968c08c16db8392e9e (patch) | |
tree | 6b854fc81d1c004c7590a89de66e7aa59993efb2 | |
parent | e7852d5a7249d769cfa867a480f4d3c673a0e5f7 (diff) | |
download | libimobiledevice-f88d37c830e35df4594c30968c08c16db8392e9e.tar.gz libimobiledevice-f88d37c830e35df4594c30968c08c16db8392e9e.tar.bz2 |
idevicesyslog: Flush stdout whenever encountering a line break
-rw-r--r-- | tools/idevicesyslog.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |