EINTR on EpollWait is normal an can be ignored

parent c71ceca4
......@@ -177,7 +177,15 @@ func poller(epfd int, evfd *eventfd.EventFD) {
// to big and GC overhead increases
events := make([]syscall.EpollEvent, 128)
n, err := syscall.EpollWait(epfd, events, -1)
if err != nil {
switch err {
case nil:
// everything is great
case syscall.EINTR:
// ignore
continue
default:
// log
log.Errorf("EpollWait returned error: %s. Continuing.", err.Error())
continue
}
......
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