summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread_sem.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librthread/rthread_sem.c')
-rw-r--r--lib/librthread/rthread_sem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/rthread_sem.c b/lib/librthread/rthread_sem.c
index 1c367e34970..14252a83185 100644
--- a/lib/librthread/rthread_sem.c
+++ b/lib/librthread/rthread_sem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_sem.c,v 1.18 2013/12/11 16:24:16 tedu Exp $ */
+/* $OpenBSD: rthread_sem.c,v 1.19 2014/06/27 23:21:47 matthew Exp $ */
/*
* Copyright (c) 2004,2005,2013 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -367,7 +367,7 @@ sem_open(const char *name, int oflag, ...)
created = 1;
}
sem = mmap(NULL, SEM_MMAP_SIZE, PROT_READ | PROT_WRITE,
- MAP_FILE | MAP_SHARED | MAP_HASSEMAPHORE, fd, 0);
+ MAP_SHARED, fd, 0);
close(fd);
if (sem == MAP_FAILED) {
errno = EINVAL;