Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
semaphore_destroy: use sem_destroy on POSIX
per POSIX semaphore, sem_init should be paired with sem_destroy (unnamed semaphore), sem_close should be paired with sem_open (named one). While glibc seems forgiving about this, this will cause hangs or segfaults with musl (for example, #1887).
- Loading branch information