summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/vdprintf.c
diff options
context:
space:
mode:
authormjg <mjg@FreeBSD.org>2014-06-22 21:37:27 +0000
committermjg <mjg@FreeBSD.org>2014-06-22 21:37:27 +0000
commit202339afcf6357683f0e37b4ac2145796d6d2fc5 (patch)
tree35484ab3d3287b205b7cb4c216643319fce9bdf7 /lib/libc/stdio/vdprintf.c
parent66013e8440dbaddd01711e4aefca2601746581e4 (diff)
downloadFreeBSD-src-202339afcf6357683f0e37b4ac2145796d6d2fc5.zip
FreeBSD-src-202339afcf6357683f0e37b4ac2145796d6d2fc5.tar.gz
Don't take filedesc lock in fdunshare().
We can read refcnt safely and only care if it is equal to 1. If it could suddenly change from 1 to something bigger the code would be buggy even in the previous form and transitions from > 1 to 1 are equally racy and harmless (we copy even though there is no need). MFC after: 1 week
Diffstat (limited to 'lib/libc/stdio/vdprintf.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud