mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
tty_stdin_input_thread(): write to pipe only if byte_count > 0.
This commit is contained in:
parent
c01baca157
commit
d9dc1ff698
1 changed files with 1 additions and 1 deletions
|
|
@ -349,7 +349,7 @@ void *tty_stdin_input_thread(void *arg)
|
|||
}
|
||||
|
||||
// Write all bytes read to pipe
|
||||
while (byte_count)
|
||||
while (byte_count > 0)
|
||||
{
|
||||
bytes_written = write(pipefd[1], input_buffer, byte_count);
|
||||
if (bytes_written < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue