From 70c37462830472e79dee6720f1f6311631d92bc7 Mon Sep 17 00:00:00 2001 From: Stanislav Levin Date: Sep 02 2020 08:29:28 +0000 Subject: bind-9.16: isc_condition_destroy is still neither void nor fatal https://gitlab.isc.org/isc-projects/bind9/-/blob/v9_16/lib/isc/pthreads/include/isc/condition.h#L54 --- diff --git a/src/semaphore.c b/src/semaphore.c index 33ed59b..b6d02ff 100644 --- a/src/semaphore.c +++ b/src/semaphore.c @@ -64,9 +64,9 @@ semaphore_destroy(semaphore_t *sem) if (sem == NULL) return; - /* isc_mutex_destroy and isc_condition_destroy are now fatal */ + /* isc_mutex_destroy is now fatal */ isc_mutex_destroy(&sem->mutex); - isc_condition_destroy(&sem->cond); + RUNTIME_CHECK(isc_condition_destroy(&sem->cond) == ISC_R_SUCCESS); } /**