Page MenuHomeFreeBSD

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

Authored by brooks on Jul 17 2019, 11:53 PM.

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

brooks created this revision.Jul 17 2019, 11:53 PM
markj accepted this revision.Jul 18 2019, 1:23 AM
This revision is now accepted and ready to land.Jul 18 2019, 1:23 AM
This revision was automatically updated to reflect the committed changes.