Ignore EINTR signal

This commit is contained in:
Ranjib Dey 2017-01-08 01:30:20 -08:00
parent adc3d47305
commit c1dfbf817a
1 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,9 @@ func initEpollListener() *epollListener {
for {
n, err := syscall.EpollWait(listener.fd, epollEvents[:], -1)
if err == syscall.EINTR {
continue
}
if err != nil {
panic(fmt.Sprintf("EpollWait error: %v", err))
}