about summary refs log tree commit diff
path: root/src/network/gethostbyname.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-10-01 09:11:35 -0400
committerRich Felker <dalias@aerifal.cx>2011-10-01 09:11:35 -0400
commitb85fec2ded3f005b877e25b63215c0d09d4a9f7f (patch)
treea990adab7dd2668c7d2b34bd6ef53056c21be309 /src/network/gethostbyname.c
parent8b98c09f8c6a0c366f06b7e6a4b3555a07e5244d (diff)
downloadmusl-b85fec2ded3f005b877e25b63215c0d09d4a9f7f.tar.gz
musl-b85fec2ded3f005b877e25b63215c0d09d4a9f7f.tar.xz
musl-b85fec2ded3f005b877e25b63215c0d09d4a9f7f.zip
fix failure-to-wake in rwlock unlock
a reader unlocking the lock need only wake one waiter (necessarily a
writer, but a writer unlocking the lock must wake all waiters
(necessarily readers). if it only wakes one, the remainder can remain
blocked indefinitely, or at least until the first reader unlocks (in
which case the whole lock becomes serialized and behaves as a mutex
rather than a read lock).
Diffstat (limited to 'src/network/gethostbyname.c')
0 files changed, 0 insertions, 0 deletions