]> granicus.if.org Git - apache/commitdiff
No this is not a pretty site... close the cached file descriptor. There is no clean
authorBill Stoddard <stoddard@apache.org>
Fri, 8 Mar 2002 21:59:25 +0000 (21:59 +0000)
committerBill Stoddard <stoddard@apache.org>
Fri, 8 Mar 2002 21:59:25 +0000 (21:59 +0000)
way to get this back into an apr_file_t since we are in the request pool cleanup.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93806 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_mem_cache.c

index 4641167c0c0d2e367a899a401a0686b9959dd0f8..576361354dfde84dd9410ad4081e2a5ad3fe98b1 100644 (file)
@@ -168,7 +168,11 @@ static void cleanup_cache_object(cache_object_t *obj)
             free(mobj->m);
         }
         if (mobj->type == CACHE_TYPE_FILE && mobj->fd) {
-            apr_file_close(mobj->fd);
+#ifdef WIN32
+            CloseHandle(mobj->fd);
+#else
+            close(mobj->fd);
+#endif
         }
         if (mobj->header_out) {
             if (mobj->header_out[0].hdr)