Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in recvmsg, pass in MSG_CMSG_CLOEXEC on illumos #373

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

sunshowers
Copy link
Contributor

Support for MSG_CMSG_CLOEXEC was added to illumos in a recent commit. To match the behavior on Linux, pass in the flag on illumos (the definition was added in libc 0.2.162).

I've verified that the ipc-channel test suite still passes on an older illumos kernel which doesn't have support for it. This is okay because for returned fds, cloexec support is effectively best-effort.

Support for MSG_CMSG_CLOEXEC was added to illumos in a [recent commit].  To
match the behavior on Linux, pass in the flag on illumos (the definition was
added in libc 0.2.162).

I've verified that the ipc-channel test suite still passes on an older
illumos kernel which doesn't have support for it. This is okay because
for returned fds, cloexec support is effectively best-effort.

[recent commit]: illumos/illumos-gate@0250c53
@jdm jdm added this pull request to the merge queue Nov 13, 2024
Merged via the queue into servo:main with commit 7476ff0 Nov 13, 2024
17 checks passed
@sunshowers sunshowers deleted the illumos-cloexec branch November 13, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants