summaryrefslogtreecommitdiff
path: root/locks
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2016-04-12 12:29:21 +0000
committerYann Ylavic <ylavic@apache.org>2016-04-12 12:29:21 +0000
commit1b4e13e29480ef84343a221cf6e2c96f55a9af4a (patch)
treead3d988a0705affeb1eed78321315ad5984a5d5f /locks
parent96a24de10ecad3a21ea57bc0c8a0561ef899b4f0 (diff)
downloadapr-1b4e13e29480ef84343a221cf6e2c96f55a9af4a.tar.gz
proc_mutex-unix: follow up to r1733775.
Restore mmap-ed fd close stripped by above commit. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1738791 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'locks')
-rw-r--r--locks/unix/proc_mutex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/locks/unix/proc_mutex.c b/locks/unix/proc_mutex.c
index 9b623c6bc..2edeed34b 100644
--- a/locks/unix/proc_mutex.c
+++ b/locks/unix/proc_mutex.c
@@ -513,8 +513,9 @@ static apr_status_t proc_mutex_proc_pthread_create(apr_proc_mutex_t *new_mutex,
close(fd);
return rv;
}
- new_mutex->pthread_refcounting = 1;
+ close(fd);
+ new_mutex->pthread_refcounting = 1;
new_mutex->curr_locked = -1; /* until the mutex has been created */
if ((rv = pthread_mutexattr_init(&mattr))) {