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>
This commit is contained in:
parent
9c9e7e2724
commit
114a3db918
|
@ -103,7 +103,7 @@ func UAPIListen(name string, file *os.File) (net.Listener, error) {
|
||||||
l.connErr <- err
|
l.connErr <- err
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if kerr != nil || n != 1 {
|
if (kerr != nil || n != 1) && kerr != unix.EINTR {
|
||||||
if kerr != nil {
|
if kerr != nil {
|
||||||
l.connErr <- kerr
|
l.connErr <- kerr
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue