You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@apache.org on 2010/04/03 12:42:53 UTC
svn commit: r930503 - /apr/apr/trunk/file_io/os2/open.c
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;
}