termpty: retry read() on EINTR

This commit is contained in:
Boris Faure 2019-12-02 23:42:38 +01:00
parent 1333e80866
commit 99d8436f5a
Signed by: borisfaure
GPG Key ID: EAA9CD729F522998
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ _fd_read_do(Termpty *ty, Ecore_Fd_Handler *fd_handler, Eina_Bool false_on_empty)
}
errno = 0;
len = read(ty->fd, rbuf, len);
if ((len < 0 && errno != EAGAIN) ||
if ((len < 0 && !(errno == EAGAIN || errno == EINTR)) ||
(len == 0 && errno != 0))
{
/* Do not print error if the child has exited */