Flush output

Make sure output is transmitted immediately by flushing the output.
This commit is contained in:
Martin Lund 2018-10-21 02:07:53 +02:00
parent bc0ae352b2
commit 14e70bd718

View file

@ -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++;