Skip to content

Consider using MSG_CMSG_CLOEXEC flag #16

@FuuuOverclocking

Description

@FuuuOverclocking
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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions