-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
MSG_CMSG_CLOEXEC (recvmsg() only; since Linux 2.6.23)
Set the close-on-exec flag for the file descriptor
received via a UNIX domain file descriptor using the
SCM_RIGHTS operation (described in [unix(7)](https://man7.org/linux/man-pages/man7/unix.7.html)). This flag is
useful for the same reasons as the O_CLOEXEC flag of
[open(2)](https://man7.org/linux/man-pages/man2/open.2.html).
Consider using MSG_CMSG_CLOEXEC
flag, close-on-exec
should be default behavior.
Links:
- https://man7.org/linux/man-pages/man2/recv.2.html
Line 126 in 69994c1
let count = libc::recvmsg(socket, &mut msghdr as *mut _, 0);
cbranch
Metadata
Metadata
Assignees
Labels
No labels