apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r930503 - /apr/apr/trunk/file_io/os2/open.c
Date Sat, 03 Apr 2010 10:42:53 GMT
Author: bjh
Date: Sat Apr  3 10:42:53 2010
New Revision: 930503

URL: http://svn.apache.org/viewvc?rev=930503&view=rev
Log:
OS/2: In apr_file_close(), only try to destroy the mutex if there is one.

Modified:
    apr/apr/trunk/file_io/os2/open.c

Modified: apr/apr/trunk/file_io/os2/open.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/os2/open.c?rev=930503&r1=930502&r2=930503&view=diff
==============================================================================
--- apr/apr/trunk/file_io/os2/open.c (original)
+++ apr/apr/trunk/file_io/os2/open.c Sat Apr  3 10:42:53 2010
@@ -143,8 +143,10 @@ APR_DECLARE(apr_status_t) apr_file_close
         }
     }
 
-    if (file->buffered)
+    if (file->mutex) {
         apr_thread_mutex_destroy(file->mutex);
+        file->mutex = NULL;
+    }
 
     return APR_SUCCESS;
 }



Mime
View raw message