commit 0bcc4289a9abc8abb3294edcc511ae0c694ee017 parent c2e320d222823269314e776a566c9d66261f580a Author: Christian Grothoff <christian@grothoff.org> Date: Thu, 13 Aug 2026 20:17:29 +0200 fix semaphore logic Diffstat:
| M | src/util/secmod_cs.c | | | 2 | +- |
| M | src/util/secmod_rsa.c | | | 2 | +- |
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/util/secmod_cs.c b/src/util/secmod_cs.c @@ -765,8 +765,8 @@ sem_up (struct Semaphore *sem) { GNUNET_assert (0 == pthread_mutex_lock (&sem->mutex)); sem->ctr++; - GNUNET_assert (0 == pthread_mutex_unlock (&sem->mutex)); pthread_cond_signal (&sem->cv); + GNUNET_assert (0 == pthread_mutex_unlock (&sem->mutex)); } diff --git a/src/util/secmod_rsa.c b/src/util/secmod_rsa.c @@ -641,8 +641,8 @@ sem_up (struct Semaphore *sem) { GNUNET_assert (0 == pthread_mutex_lock (&sem->mutex)); sem->ctr++; - GNUNET_assert (0 == pthread_mutex_unlock (&sem->mutex)); pthread_cond_signal (&sem->cv); + GNUNET_assert (0 == pthread_mutex_unlock (&sem->mutex)); }