aboutsummaryrefslogtreecommitdiff
path: root/contrib/bind9/lib/isc/unix/entropy.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2012-04-05 03:05:02 +0000
committerDavid Xu <davidxu@FreeBSD.org>2012-04-05 03:05:02 +0000
commit8931e524bfb5c6a10894f704e3eaa05ee5d9fa77 (patch)
treec3b9f33711c130d7a58e15afe974452d99fe010a /contrib/bind9/lib/isc/unix/entropy.c
parent17ce60632137c4e6bff703cbedd9d9331a8273c1 (diff)
downloadsrc-8931e524bfb5c6a10894f704e3eaa05ee5d9fa77.tar.gz
src-8931e524bfb5c6a10894f704e3eaa05ee5d9fa77.zip
In sem_post, the field _has_waiters is no longer used, because some
application destroys semaphore after sem_wait returns. Just enter kernel to wake up sleeping threads, only update _has_waiters if it is safe. While here, check if the value exceed SEM_VALUE_MAX and return EOVERFLOW if this is true.
Notes
Notes: svn path=/head/; revision=233913
Diffstat (limited to 'contrib/bind9/lib/isc/unix/entropy.c')
0 files changed, 0 insertions, 0 deletions