mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Flush output
Make sure output is transmitted immediately by flushing the output.
This commit is contained in:
parent
bc0ae352b2
commit
14e70bd718
1 changed files with 1 additions and 0 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue