summaryrefslogtreecommitdiff
path: root/www/apache/patches/patch-ag
blob: d4cb64cba89fd9bbc7af7242f0d5855cdb8eae30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ag,v 1.9 2008/02/23 05:16:34 obache Exp $

--- src/os/unix/os.c.orig	2006-07-12 08:16:05.000000000 +0000
+++ src/os/unix/os.c
@@ -154,7 +154,12 @@ void ap_os_dso_unload(void *handle)
 #elif defined(HAVE_DYLD)
     NSUnLinkModule(handle,FALSE);
 
-#else
+/*
+ * Work around Apache dlclose() bug, where shared objects may be
+ * dlclose()d before their cleanup procedures are called.
+ * This is needed so shared modules can be used. 
+ */
+#elif 0
     dlclose(handle);
 #endif