diff options
author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2016-04-12 12:29:21 +0000 |
---|---|---|
committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2016-04-12 12:29:21 +0000 |
commit | fa642ec947e5e76d4534ee773c2b68c332767463 (patch) | |
tree | ad3d988a0705affeb1eed78321315ad5984a5d5f /locks | |
parent | 88c4bde09f851b5041f464efa2b53fbcba77882b (diff) | |
download | libapr-fa642ec947e5e76d4534ee773c2b68c332767463.tar.gz |
proc_mutex-unix: follow up to r1733775.
Restore mmap-ed fd close stripped by above commit.
git-svn-id: http://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.c | 3 |
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))) { |