]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Document that setmode(3) is not thread safe.
authorbrooks <brooks@FreeBSD.org>
Thu, 18 Jul 2019 21:33:55 +0000 (21:33 +0000)
committerbrooks <brooks@FreeBSD.org>
Thu, 18 Jul 2019 21:33:55 +0000 (21:33 +0000)
commitd165cb43488f906a3d56bd81ddd69ff2ac9c7942
treea2ff624de187424ffc73564ef686fe902f65acef
parent38af09b891aa6f743db65a33fea9d78584bd53c1
Document that setmode(3) is not thread safe.

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.

Reviewed by: markj
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D20982
lib/libc/gen/setmode.3