Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
https://jira.fd.io/projects/GOVPP/issues/GOVPP-20
[govpp.git]
/
extras
/
libmemif
/
adapter.go
diff --git
a/extras/libmemif/adapter.go
b/extras/libmemif/adapter.go
index
0cee589
..
eb7e209
100644
(file)
--- a/
extras/libmemif/adapter.go
+++ b/
extras/libmemif/adapter.go
@@
-1157,6
+1157,11
@@
func pollRxQueue(memif *Memif, queueID uint8) {
for {
_, err := syscall.EpollWait(epFd, event[:], -1)
if err != nil {
for {
_, err := syscall.EpollWait(epFd, event[:], -1)
if err != nil {
+ errno, _ := err.(syscall.Errno)
+ //EINTR and EAGAIN should not be considered as a fatal error, try again
+ if errno == syscall.EINTR || errno == syscall.EAGAIN {
+ continue
+ }
log.WithField("err", err).Error("epoll_wait() failed")
return
}
log.WithField("err", err).Error("epoll_wait() failed")
return
}