From 14e70bd718d93f72b4615b0b6232af135ae365b1 Mon Sep 17 00:00:00 2001 From: Martin Lund Date: Sun, 21 Oct 2018 02:07:53 +0200 Subject: [PATCH] Flush output Make sure output is transmitted immediately by flushing the output. --- src/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tty.c b/src/tty.c index d5a6bd8..b337ba8 100644 --- a/src/tty.c +++ b/src/tty.c @@ -693,6 +693,7 @@ int tty_connect(void) status = write(fd, &output_char, 1); if (status < 0) warning_printf("Could not write to tty device"); + fsync(fd); /* Update transmit statistics */ tx_total++;