Skip to content

Commit

Permalink
man/io_uring_prep_accept.3: SOCK_CLOEXEC isn't supported with direct …
Browse files Browse the repository at this point in the history
…files

SOCK_CLOEXEC is only supported with regular file descriptors, the
direct descriptors currently do not support automatic closing on exec.

Link: #1330
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Jan 17, 2025
1 parent 1a5e9e6 commit 19134a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions man/io_uring_prep_accept.3
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 19134a8

Please sign in to comment.