mirror of
https://github.com/vishvananda/netlink.git
synced 2025-10-05 07:46:51 +08:00
Revert "Change behavior of Subscribe
to non-blocking. Fix test."
This reverts commit 916f9685fa
.
This commit is contained in:

committed by
Alessandro Boch

parent
856e190dd7
commit
1e68b2710d
@@ -2,7 +2,6 @@ package netlink
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"syscall"
|
||||
|
||||
"github.com/vishvananda/netlink/nl"
|
||||
"github.com/vishvananda/netns"
|
||||
@@ -57,9 +56,6 @@ func XfrmMonitor(ch chan<- XfrmMsg, done <-chan struct{}, errorChan chan<- error
|
||||
for {
|
||||
msgs, from, err := s.Receive()
|
||||
if err != nil {
|
||||
if err == syscall.EAGAIN {
|
||||
continue
|
||||
}
|
||||
errorChan <- err
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user