diff --git a/include/exec/linux/io_uring_context.hpp b/include/exec/linux/io_uring_context.hpp index 2f819710e..bbb9929fc 100644 --- a/include/exec/linux/io_uring_context.hpp +++ b/include/exec/linux/io_uring_context.hpp @@ -413,7 +413,13 @@ namespace experimental::execution auto try_wakeup() noexcept -> std::error_code { std::uint64_t __wakeup = 1; - if (::write(__eventfd_, &__wakeup, sizeof(__wakeup)) == -1) + ssize_t __ret; + do + { + __ret = ::write(__eventfd_, &__wakeup, sizeof(__wakeup)); + } + while (__ret == -1 && errno == EINTR); + if (__ret == -1) { return {errno, std::system_category()}; }