src/server/daemon/event_linux.c

changeset 126
631aaa01b2b5
parent 79
f48cea237ec3
child 133
87b405d61f64
equal deleted inserted replaced
125:c913d515be1e 126:631aaa01b2b5
94 struct epoll_event events[16]; 94 struct epoll_event events[16];
95 95
96 for(;;) { 96 for(;;) {
97 /* wait for events */ 97 /* wait for events */
98 int ret = epoll_wait(ep, events, 16, 100000); 98 int ret = epoll_wait(ep, events, 16, 100000);
99 if(ret == -1) { 99 if(ret == -1 && errno != EINTR) {
100 /* TODO: check for error */ 100 /* TODO: check for error */
101 perror("epoll_wait"); 101 perror("epoll_wait");
102 continue; 102 continue;
103 } 103 }
104 104

mercurial