summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/sem_new.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/sem_new.c')
-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