[OpenSIPS-Devel] [OpenSIPS/opensips] 542279: aaa_diameter: Avoid all pthread_cond race conditions
Liviu Chircu
noreply at github.com
Mon Apr 18 14:33:08 UTC 2022
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: 5422799e77662db58d23cbd38bc92875091f177a
https://github.com/OpenSIPS/opensips/commit/5422799e77662db58d23cbd38bc92875091f177a
Author: Liviu Chircu <liviu at opensips.org>
Date: 2022-04-18 (Mon, 18 Apr 2022)
Changed paths:
M modules/aaa_diameter/aaa_impl.c
M modules/aaa_diameter/aaa_impl.h
Log Message:
-----------
aaa_diameter: Avoid all pthread_cond race conditions
The recommended usage of the wait/signal pthread_cond_t functions
includes using a "counter" variable in order to keep track of any
"signal" events happening before the actual "wait".
Many thanks to Ryan Caicse (@ryancaicse) for reporting this bug and the
excellent fix suggestion!
Fixes #2789
More information about the Devel
mailing list