Page MenuHomeFreeBSD

fcntl(F_SETFL): only allow one thread to perform F_SETFL
ClosedPublic

Authored by kib on Sep 11 2025, 10:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 4, 9:03 AM
Unknown Object (File)
Tue, Nov 4, 4:32 AM
Unknown Object (File)
Fri, Oct 31, 2:13 AM
Unknown Object (File)
Mon, Oct 27, 9:50 AM
Unknown Object (File)
Thu, Oct 23, 7:16 AM
Unknown Object (File)
Tue, Oct 21, 2:26 PM
Unknown Object (File)
Thu, Oct 9, 10:37 PM
Unknown Object (File)
Thu, Oct 9, 10:37 PM
Subscribers

Details

Summary
Use f_vflags file locking for this.
Allowing more than one thread handling F_SETFL might cause de-sync
between real driver state and flags.

Diff Detail

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