Page MenuHomeFreeBSD

Unbreak MSG_CMSG_CLOEXEC
ClosedPublic

Authored by arichardson on Mar 18 2021, 5:33 PM.
Tags
None
Referenced Files
F163420747: D29328.id85972.diff
Thu, Jul 23, 1:47 AM
F163412888: D29328.id.diff
Thu, Jul 23, 12:05 AM
Unknown Object (File)
Tue, Jul 21, 4:25 AM
Unknown Object (File)
Sun, Jul 12, 7:05 PM
Unknown Object (File)
Sun, Jun 28, 5:28 AM
Unknown Object (File)
Jun 22 2026, 4:10 PM
Unknown Object (File)
May 27 2026, 6:17 AM
Unknown Object (File)
May 25 2026, 3:25 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