Page MenuHomeFreeBSD

Unbreak MSG_CMSG_CLOEXEC
ClosedPublic

Authored by arichardson on Mar 18 2021, 5:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 2:07 PM
Unknown Object (File)
Mon, Oct 28, 6:53 PM
Unknown Object (File)
Sep 30 2024, 2:44 AM
Unknown Object (File)
Sep 22 2024, 6:58 PM
Unknown Object (File)
Sep 5 2024, 8:19 PM
Unknown Object (File)
Sep 4 2024, 11:04 AM
Unknown Object (File)
Sep 3 2024, 11:02 PM
Unknown Object (File)
Sep 2 2024, 1:58 PM
Subscribers

Details

Summary

MSG_CMSG_CLOEXEC has not been working since 2015 (SVN r284380) because
_finstall expects O_CLOEXEC and not UF_EXCLOSE as the flags argument.
This was probably not noticed because we don't have a test for this flag
so this commit adds one. I found this problem because one of the
libwayland tests was failing.

Fixes: ea31808c3b07 ("fd: move out actual fp installation to _finstall")

Test Plan

Newly added test failed before, passes now.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable