diff options
-rw-r--r-- | tpool/aio_liburing.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tpool/aio_liburing.cc b/tpool/aio_liburing.cc index 2a9c79f9020..6eff6c313a3 100644 --- a/tpool/aio_liburing.cc +++ b/tpool/aio_liburing.cc @@ -63,6 +63,12 @@ public: } throw std::runtime_error("aio_uring()"); } + if (io_uring_ring_dontfork(&uring_) != 0) + { + my_printf_error(ER_UNKNOWN_ERROR, + "io_uring_dontfork() failed with errno %d (continuing)", + ME_ERROR_LOG | ME_WARNING, errno); + } thread_= std::thread(thread_routine, this); } |