Page MenuHomeFreeBSD

Document that setmode(3) is not thread safe.
ClosedPublic

Authored by brooks on Jul 17 2019, 11:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 20, 9:22 PM
Unknown Object (File)
Thu, Nov 20, 9:21 PM
Unknown Object (File)
Thu, Nov 20, 9:21 PM
Unknown Object (File)
Thu, Nov 20, 9:14 PM
Unknown Object (File)
Fri, Oct 31, 3:58 AM
Unknown Object (File)
Oct 16 2025, 2:07 AM
Unknown Object (File)
Oct 16 2025, 2:07 AM
Unknown Object (File)
Oct 16 2025, 2:06 AM
Subscribers

Details

Summary

In some circumstances, setmode(3) may call umask(2) twice to retrieve
the current mode and then restore it. Between calls, the process will
have a umask of 0.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable