Commit 498b1892 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

dist/sockets: ignore EINTR on epoll (for gdb)

parent f1cd04ea
...@@ -606,6 +606,9 @@ static int IOLoop() { ...@@ -606,6 +606,9 @@ static int IOLoop() {
struct epoll_event evs[kNumEvs]; struct epoll_event evs[kNumEvs];
int n = epoll_wait(epfd, evs, kNumEvs, -1); int n = epoll_wait(epfd, evs, kNumEvs, -1);
if (n < 0) { if (n < 0) {
if (errno == EINTR)
continue;
perror("IOLoop: epoll_wait failed"); perror("IOLoop: epoll_wait failed");
return 1; return 1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment