diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-01-14 16:10:43 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-01-14 16:10:43 +0100 |
commit | 114a3db9185080baf6edf3687355e72ba3113b59 (patch) | |
tree | 1013a463f1dc89156e018b5c312051ecd55f603a | |
parent | 9c9e7e2724340280d0ca4ff29c067f2d144562c0 (diff) |
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>
-rw-r--r-- | ipc/uapi_bsd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/uapi_bsd.go b/ipc/uapi_bsd.go index 6c85b40..303adeb 100644 --- a/ipc/uapi_bsd.go +++ b/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 { |