Browse Source

ipc: bsd: try again if kqueue returns EINTR

Reported-by: J. Michael McAtee <mmcatee@jumptrading.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
tp/icmp-fixes
Jason A. Donenfeld 4 months ago
parent
commit
114a3db918
  1. 2
      ipc/uapi_bsd.go

2
ipc/uapi_bsd.go

@ -103,7 +103,7 @@ func UAPIListen(name string, file *os.File) (net.Listener, error) {
l.connErr <- err
return
}
if kerr != nil || n != 1 {
if (kerr != nil || n != 1) && kerr != unix.EINTR {
if kerr != nil {
l.connErr <- kerr
} else {

Loading…
Cancel
Save