mirror of
https://github.com/tio/tio.git
synced 2026-05-01 14:57:59 +02:00
Ignore EINTR error.
This commit is contained in:
parent
8134cd3486
commit
5c441f22c2
1 changed files with 5 additions and 0 deletions
|
|
@ -299,6 +299,11 @@ void *tty_stdin_input_thread(void *arg)
|
||||||
byte_count = read(STDIN_FILENO, input_buffer, BUFSIZ);
|
byte_count = read(STDIN_FILENO, input_buffer, BUFSIZ);
|
||||||
if (byte_count < 0)
|
if (byte_count < 0)
|
||||||
{
|
{
|
||||||
|
/* No error actually occurred */
|
||||||
|
if (errno == EINTR)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
tio_warning_printf("Could not read from stdin (%s)", strerror(errno));
|
tio_warning_printf("Could not read from stdin (%s)", strerror(errno));
|
||||||
}
|
}
|
||||||
else if (byte_count == 0)
|
else if (byte_count == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue