summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-05-07 07:55:58 +0000
committerkib <kib@FreeBSD.org>2017-05-07 07:55:58 +0000
commitb10cbf3118308456605f6391bfb88a80e8102b7a (patch)
treed271ea96b958cd5e34c692436003d09ab9dfb416 /lib/libc
parente3d383dcc0e8bb03c78c139264c81131e4b80df5 (diff)
downloadFreeBSD-src-b10cbf3118308456605f6391bfb88a80e8102b7a.zip
FreeBSD-src-b10cbf3118308456605f6391bfb88a80e8102b7a.tar.gz
MFC r317611:
Make semaphore names list mutex non-recursive.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/sem_new.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libc/gen/sem_new.c b/lib/libc/gen/sem_new.c
index 3e1f5ea..3bf8981 100644
--- a/lib/libc/gen/sem_new.c
+++ b/lib/libc/gen/sem_new.c
@@ -104,12 +104,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);
}
OpenPOWER on IntegriCloud