HomeFreeBSD

lib: Fix calls that naively set F_SETFD.

Description

lib: Fix calls that naively set F_SETFD.

With the recent inclusion of the FD_CLOFORK and FD_RESOLVE_BENEATH flags,
we must avoid clearing them when setting only FD_CLOEXEC.

Signed-off-by: Ricardo Branco <rbranco@suse.de>

Reviewed by: kib, markj
MFC after: 1 month
Pull Request: https://github.com/freebsd/freebsd-src/pull/1766

Details

Provenance
rbranco_suse.comAuthored on Jul 14 2025, 8:10 PM
markjCommitted on Jul 17 2025, 5:00 PM
Parents
rG2181568715e8: libbegemot: improve tracing prints
Branches
Unknown
Tags
Unknown