From 385851de40071a939361e0ca25fc29cac4ac8e7e Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Thu, 8 Jul 2021 17:30:09 -0700 Subject: [PATCH] waitCompletion retry on EINTR --- net/uring/io_uring_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/uring/io_uring_linux.go b/net/uring/io_uring_linux.go index 1ba5fa55e..df8dcbb55 100644 --- a/net/uring/io_uring_linux.go +++ b/net/uring/io_uring_linux.go @@ -21,7 +21,7 @@ const ( func waitCompletion(ring *C.go_uring) (n, idx int, err error) { for { r := C.completion(ring, blockForCompletion) - if syscall.Errno(-r.err) == syscall.EAGAIN { + if syscall.Errno(-r.err) == syscall.EAGAIN || syscall.Errno(-r.err) == syscall.EINTR { continue } var err error