Skip to content

Commit

Permalink
Unlink named semaphores after opening them (#4530)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazarmy authored Jun 3, 2024
1 parent c613ac3 commit d1a7dba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions librz/util/thread_sem.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ RZ_API RZ_OWN RzThreadSemaphore *rz_th_sem_new(unsigned int initial) {
free(sem);
return NULL;
}
sem_unlink(name);
#else
sem->sem = malloc(sizeof(sem_t));
if (!sem->sem) {
Expand Down

0 comments on commit d1a7dba

Please sign in to comment.