2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Improve reporting for pthread_once errors

Replace all uses of RUNTIME_CHECK() in lib/isc/include/isc/once.h with
PTHEADS_RUNTIME_CHECK(), in order to improve error reporting for any
once-related run-time failures (by augmenting error messages with
file/line/caller information and the error string corresponding to
errno).
This commit is contained in:
Ondřej Surý
2022-10-14 16:10:41 +02:00
committed by Ondřej Surý
parent 2ac48846f4
commit cedfc97974
11 changed files with 28 additions and 37 deletions

View File

@@ -451,7 +451,7 @@ mem_initialize(void) {
void
isc__mem_initialize(void) {
RUNTIME_CHECK(isc_once_do(&init_once, mem_initialize) == ISC_R_SUCCESS);
isc_once_do(&init_once, mem_initialize);
}
static void
@@ -463,7 +463,7 @@ mem_shutdown(void) {
void
isc__mem_shutdown(void) {
RUNTIME_CHECK(isc_once_do(&shut_once, mem_shutdown) == ISC_R_SUCCESS);
isc_once_do(&shut_once, mem_shutdown);
}
static void