aboutsummaryrefslogtreecommitdiff
path: root/src/common/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/helper.c')
-rw-r--r--src/common/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/helper.c b/src/common/helper.c
index a176eecc..504e5abe 100644
--- a/src/common/helper.c
+++ b/src/common/helper.c
@@ -508,7 +508,7 @@ void run_with_save_calls(PThreadMain cb,
508 /* another thread will run the save calls */ 508 /* another thread will run the save calls */
509 SEMAPHORE_DOWN(cls.sig, YES); 509 SEMAPHORE_DOWN(cls.sig, YES);
510 } else { 510 } else {
511 while (OK != SEMAPHORE_DOWN(cls.sig, NO)) { 511 while (SYSERR == SEMAPHORE_DOWN(cls.sig, NO)) {
512 MUTEX_LOCK(sclock); 512 MUTEX_LOCK(sclock);
513 if (pscCount > 0) { 513 if (pscCount > 0) {
514 i = weak_randomi(pscCount); 514 i = weak_randomi(pscCount);