You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by yl...@apache.org on 2016/04/12 14:29:21 UTC

svn commit: r1738791 - /apr/apr/trunk/locks/unix/proc_mutex.c

Author: ylavic
Date: Tue Apr 12 12:29:21 2016
New Revision: 1738791

URL: http://svn.apache.org/viewvc?rev=1738791&view=rev
Log:
proc_mutex-unix: follow up to r1733775.
Restore mmap-ed fd close stripped by above commit.

Modified:
    apr/apr/trunk/locks/unix/proc_mutex.c

Modified: apr/apr/trunk/locks/unix/proc_mutex.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/locks/unix/proc_mutex.c?rev=1738791&r1=1738790&r2=1738791&view=diff
==============================================================================
--- apr/apr/trunk/locks/unix/proc_mutex.c (original)
+++ apr/apr/trunk/locks/unix/proc_mutex.c Tue Apr 12 12:29:21 2016
@@ -513,8 +513,9 @@ static apr_status_t proc_mutex_proc_pthr
         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))) {