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 25, 1:51 PM
Unknown Object (File)
Mon, Nov 24, 8:33 AM
Unknown Object (File)
Sat, Nov 22, 7:59 PM
Unknown Object (File)
Sat, Nov 22, 2:29 AM
Unknown Object (File)
Thu, Nov 20, 7:33 PM
Unknown Object (File)
Fri, Nov 7, 1:17 PM
Unknown Object (File)
Tue, Nov 4, 9:03 AM
Unknown Object (File)
Tue, Nov 4, 4:32 AM
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