mirror of
https://github.com/wolfcw/libfaketime.git
synced 2026-05-17 00:26:16 +03:00
Preventing shared sem to be used again
The shared semaphore is closed but it's not assigned to null. That's required because the logic check the semaphore status if it's not null. For this reason, we are getting a core some times.
This commit is contained in:
@@ -628,6 +628,7 @@ static void ft_cleanup (void)
|
||||
if (shared_sem != NULL)
|
||||
{
|
||||
sem_close(shared_sem);
|
||||
shared_sem = NULL;
|
||||
}
|
||||
#ifdef FAKE_PTHREAD
|
||||
if (pthread_rwlock_destroy(&monotonic_conds_lock) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user