From 19134a8fffd406b22595a5813a3e319c19630ac9 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 17 Jan 2025 08:43:48 -0700 Subject: [PATCH] man/io_uring_prep_accept.3: SOCK_CLOEXEC isn't supported with direct files SOCK_CLOEXEC is only supported with regular file descriptors, the direct descriptors currently do not support automatic closing on exec. Link: https://github.com/axboe/liburing/issues/1330 Signed-off-by: Jens Axboe --- man/io_uring_prep_accept.3 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/man/io_uring_prep_accept.3 b/man/io_uring_prep_accept.3 index c8985d518..950ab7d40 100644 --- a/man/io_uring_prep_accept.3 +++ b/man/io_uring_prep_accept.3 @@ -187,6 +187,12 @@ behavior by inspecting the .B IORING_FEAT_SUBMIT_STABLE flag passed back from .BR io_uring_queue_init_params (3). +.P +Note that the direct versions of accept do not accept +.B SOCK_CLOEXEC , +and setting that flag will result in an +.B -EINVAL +error in the CQE. .SH SEE ALSO .BR io_uring_get_sqe (3), .BR io_uring_submit (3),