]> granicus.if.org Git - apache/commitdiff
revert r1066944, r1067177 for now
authorStefan Fritsch <sf@apache.org>
Sat, 5 Feb 2011 19:02:33 +0000 (19:02 +0000)
committerStefan Fritsch <sf@apache.org>
Sat, 5 Feb 2011 19:02:33 +0000 (19:02 +0000)
breaks MacOS X and wherever this code will go, server/main.c does not seem to be the right place.
See
http://mail-archives.apache.org/mod_mbox/httpd-dev/201102.mbox/%3C01930193-8A3B-4635-9EB0-5EE31349E49C@jaguNET.com%3E

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

CHANGES
configure.in
server/main.c

diff --git a/CHANGES b/CHANGES
index 85820bbbdf90083d72da1dc9dd7c5b28323f4e29..b5695bb9f08b17d21f52cbc003fc0bae390391ab 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,9 +2,6 @@
 
 Changes with Apache 2.3.11
 
-  *) core: Reload resolv.conf on graceful restarts. PR 50619.
-     [Matt Miller <m miller f5 com>, Stefan Fritsch]
-
   *) mod_mime: Ignore leading dots when looking for mime extensions.
      PR 50434 [Stefan Fritsch]
 
index 5082c6e1d45c42caafd7b61d7057207964a484a7..0f4142435f40c72082342d3d0bcd355c5c0a04b2 100644 (file)
@@ -400,7 +400,6 @@ sys/sem.h \
 sys/sdt.h
 )
 AC_HEADER_SYS_WAIT
-AC_HEADER_RESOLV
 
 dnl ## Check for typedefs, structures, and compiler characteristics.
 
@@ -417,7 +416,6 @@ LIBS="$saved_LIBS"
 
 dnl See Comment #Spoon
 
-AC_SEARCH_LIBS(res_init, resolv, , [AC_SEARCH_LIBS(__res_init,resolv)])
 AC_CHECK_FUNCS( \
 getpwnam \
 getgrnam \
@@ -426,9 +424,7 @@ bindprocessor \
 prctl \
 timegm \
 getpgid \
-fopen64 \
-res_init \
-__res_init
+fopen64
 )
 
 dnl confirm that a void pointer is large enough to store a long integer
index 97a91e249892d1361a47ddbcef5e4073ffc1c734..3ea53d4bb428343f2d236b3de1b509ffd0d828dc 100644 (file)
 #include <unistd.h>
 #endif
 
-#if HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#if HAVE_ARPA_NAMESER_H
-#include <arpa/nameser.h>
-#endif
-#if HAVE_RESOLV_H
-#include <resolv.h>
-#endif
-
 /* WARNING: Win32 binds http_main.c dynamically to the server. Please place
  *          extern functions and global data in another appropriate module.
  *
@@ -688,18 +678,7 @@ int main(int argc, const char * const argv[])
         apr_hook_deregister_all();
         apr_pool_clear(pconf);
         ap_clear_auth_internal();
-#if 0
-/* glibc has __res_init that is #defined to res_init */
-#if HAVE_RES_INIT || HAVE___RES_INIT
-        /*
-         * resolv.conf may have changed, so this will read/reread it.
-         */
-        if (res_init() == -1) {
-            ap_log_error(APLOG_MARK, APLOG_WARNING, 0, NULL,
-                         "Resolver initialization failed.");
-        }
-#endif
-#endif
+
         for (mod = ap_prelinked_modules; *mod != NULL; mod++) {
             ap_register_hooks(*mod, pconf);
         }