Page MenuHomeFreeBSD

Unbreak MSG_CMSG_CLOEXEC
ClosedPublic

Authored by arichardson on Mar 18 2021, 5:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 3, 4:05 AM
Unknown Object (File)
Wed, Nov 26, 9:50 AM
Unknown Object (File)
Sun, Nov 23, 3:30 AM
Unknown Object (File)
Wed, Nov 19, 11:12 AM
Unknown Object (File)
Wed, Nov 12, 4:19 AM
Unknown Object (File)
Nov 2 2025, 4:28 PM
Unknown Object (File)
Oct 27 2025, 3:18 PM
Unknown Object (File)
Oct 20 2025, 12:38 AM
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