diff options
author | kib <kib@FreeBSD.org> | 2017-05-07 08:02:28 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2017-05-07 08:02:28 +0000 |
commit | ef05bd80ffaf326bad4c3d627a479d8875b02359 (patch) | |
tree | edd2777fe161c8d10a113b3005cc1386a981ee28 /lib/libc/gen | |
parent | cb5eb94f57844bb74cad947ecbe446fac0b2c6b0 (diff) | |
download | FreeBSD-src-ef05bd80ffaf326bad4c3d627a479d8875b02359.zip FreeBSD-src-ef05bd80ffaf326bad4c3d627a479d8875b02359.tar.gz |
MFC r317611:
Make semaphore names list mutex non-recursive.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r-- | lib/libc/gen/sem_new.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/gen/sem_new.c b/lib/libc/gen/sem_new.c index bceeead..5c55269 100644 --- a/lib/libc/gen/sem_new.c +++ b/lib/libc/gen/sem_new.c @@ -101,12 +101,8 @@ sem_child_postfork(void) static void sem_module_init(void) { - pthread_mutexattr_t ma; - _pthread_mutexattr_init(&ma); - _pthread_mutexattr_settype(&ma, PTHREAD_MUTEX_RECURSIVE); - _pthread_mutex_init(&sem_llock, &ma); - _pthread_mutexattr_destroy(&ma); + _pthread_mutex_init(&sem_llock, NULL); _pthread_atfork(sem_prefork, sem_postfork, sem_child_postfork); } |