]> git.ipfire.org Git - thirdparty/wireguard-go.git/commitdiff
ipc: bsd: try again if kqueue returns EINTR
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 14 Jan 2022 15:10:43 +0000 (16:10 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 14 Jan 2022 15:10:43 +0000 (16:10 +0100)
Reported-by: J. Michael McAtee <mmcatee@jumptrading.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
ipc/uapi_bsd.go

index 6c85b402e0bed817bb1313442c503ef34c24c147..303adeb5278073282a26680dbeda43e291819bf7 100644 (file)
@@ -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 {