Handle EINTR

This commit is contained in:
Vitaliy Filippov
2022-01-22 23:59:37 +03:00
parent 23e578b6a2
commit 9c3653b1e1
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -381,7 +381,7 @@ again:
{
res = -errno;
}
if (res == -EAGAIN)
if (res == -EAGAIN || res == -EINTR)
{
res = 0;
}
@@ -431,7 +431,7 @@ void http_co_t::submit_read()
{
res = -errno;
}
if (res == -EAGAIN)
if (res == -EAGAIN || res == -EINTR)
{
epoll_events = epoll_events & ~EPOLLIN;
}