From b10cbf3118308456605f6391bfb88a80e8102b7a Mon Sep 17 00:00:00 2001 From: kib Date: Sun, 7 May 2017 07:55:58 +0000 Subject: MFC r317611: Make semaphore names list mutex non-recursive. --- lib/libc/gen/sem_new.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/libc/gen/sem_new.c') 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); } -- cgit v1.1