mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-07 18:12:13 +00:00
Fixes sem leak
This commit is contained in:
parent
1462e80af4
commit
c73f2aa5cc
@ -249,7 +249,7 @@ qb_log_thread_stop(void)
|
||||
for (;;) {
|
||||
res = sem_getvalue(&logt_print_finished, &value);
|
||||
if (res != 0 || value == 0) {
|
||||
return;
|
||||
break;
|
||||
}
|
||||
sem_wait(&logt_print_finished);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user