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, May 21, 1:25 AM
Unknown Object (File)
Thu, May 7, 5:53 PM
Unknown Object (File)
Thu, May 7, 12:15 AM
Unknown Object (File)
May 4 2026, 11:32 AM
Unknown Object (File)
May 4 2026, 11:05 AM
Unknown Object (File)
May 1 2026, 11:30 AM
Unknown Object (File)
Apr 29 2026, 7:01 AM
Unknown Object (File)
Apr 27 2026, 4:19 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