$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