summaryrefslogtreecommitdiff
path: root/libpthread/nptl/sem_close.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/nptl/sem_close.c')
-rw-r--r--libpthread/nptl/sem_close.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libpthread/nptl/sem_close.c b/libpthread/nptl/sem_close.c
index a2bcc7179..dcf30f7b7 100644
--- a/libpthread/nptl/sem_close.c
+++ b/libpthread/nptl/sem_close.c
@@ -41,12 +41,13 @@ walker (const void *inodep, const VISIT which, const int depth)
int
-sem_close (sem_t *sem)
+sem_close (
+ sem_t *sem)
{
int result = 0;
/* Get the lock. */
- lll_lock (__sem_mappings_lock);
+ lll_lock (__sem_mappings_lock, LLL_PRIVATE);
/* Locate the entry for the mapping the caller provided. */
rec = NULL;
@@ -74,7 +75,7 @@ sem_close (sem_t *sem)
}
/* Release the lock. */
- lll_unlock (__sem_mappings_lock);
+ lll_unlock (__sem_mappings_lock, LLL_PRIVATE);
return result;
}