summaryrefslogtreecommitdiffstats
path: root/usr.bin/expand
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>2001-02-23 04:59:12 +0000
committergreen <green@FreeBSD.org>2001-02-23 04:59:12 +0000
commit63ed3e92a93db5d5076a050b2288f3503183e68c (patch)
tree260fca0739e0246c6e247680e9ab7feaa7e8ca11 /usr.bin/expand
parent013c5306534211fcd3b045df1fddc37ef3bd2b7e (diff)
downloadFreeBSD-src-63ed3e92a93db5d5076a050b2288f3503183e68c.zip
FreeBSD-src-63ed3e92a93db5d5076a050b2288f3503183e68c.tar.gz
Fix the problems I (and others, undoubtedly) have been having for a
while with threaded software in -CURRENT acting very "weird". It has seemed, for example, in Mozilla that threads attempting to do host lookups have been locking up. That's exactly the case. There was a race condition in the implementation of the initialization of the mutex used to protect FILE operations, first of all: multiple instances of FLOCKFILE() in libc could occur on the same FILE at the same time and cause strange behavior by overwriting eachothers' creation of the mutex and the rest of the file lock. Secondly, it's not appropriate to test the "validity" of the file descriptor referenced by the FILE; if the code is calling FLOCKFILE() or FUNLOCKFILE(), it wants the FILE to be locked or unlocked, not to be locked or unlocked on the condition that _file is >= 0. This also could quite easily cause leaks by failing to perform the lock or unlock operation when it actually is needed. Mozilla now works again on -CURRENT when linked to libc_r.so.5 and libc.so.5.
Diffstat (limited to 'usr.bin/expand')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud