mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 04:12:51 +00:00
Also call sem_module_init in sem_close to initialize mutex
with some attributes.
This commit is contained in:
parent
6f7be14a9a
commit
764ce7ce7d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=202326
@ -255,6 +255,8 @@ _sem_close(sem_t *sem)
|
||||
return (-1);
|
||||
}
|
||||
|
||||
_pthread_once(&once, sem_module_init);
|
||||
|
||||
_pthread_mutex_lock(&sem_llock);
|
||||
LIST_FOREACH(ni, &sem_list, next) {
|
||||
if (sem == ni->sem) {
|
||||
|
Loading…
Reference in New Issue
Block a user