waitCompletion retry on EINTR

This commit is contained in:
Josh Bleecher Snyder 2021-07-08 17:30:09 -07:00
parent 61cde40000
commit 385851de40

View File

@ -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