$NetBSD: patch-ag,v 1.8 2004/10/29 13:48:31 abs Exp $ --- src/os/unix/os.c.orig 2004-02-20 21:01:04.000000000 +0000 +++ src/os/unix/os.c @@ -153,7 +153,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