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 |