Merge pull request #207 from HiFiPhile/eintr

tty_stdin_input_thread(): write to pipe only if byte_count > 0.
This commit is contained in:
Martin Lund 2023-09-14 00:19:39 +02:00 committed by GitHub
commit 812dee8e54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)