Skip to content

Commit 114a3db

Browse files
committed
ipc: bsd: try again if kqueue returns EINTR
Reported-by: J. Michael McAtee <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent 9c9e7e2 commit 114a3db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipc/uapi_bsd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func UAPIListen(name string, file *os.File) (net.Listener, error) {
103103
l.connErr <- err
104104
return
105105
}
106-
if kerr != nil || n != 1 {
106+
if (kerr != nil || n != 1) && kerr != unix.EINTR {
107107
if kerr != nil {
108108
l.connErr <- kerr
109109
} else {

0 commit comments

Comments
 (0)