aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorPaul Eggert2016-02-29 09:39:45 -0800
committerPaul Eggert2016-02-29 09:40:58 -0800
commit93bf7d52841c60ffc10e0c9c789a7987812ce55e (patch)
tree443f8b37cf01441daab1a3e3a932417a3449a4c2 /src/process.c
parent938f104f1b8de0a082f4736aaf504cea4f65765e (diff)
downloademacs-93bf7d52841c60ffc10e0c9c789a7987812ce55e.tar.gz
emacs-93bf7d52841c60ffc10e0c9c789a7987812ce55e.zip
Stop calling res_init
Emacs shouldn’t need to call res_init any more, now that nscd or equivalent is everywhere. On modern systems, calling res_init simply slows Emacs down. On ancient systems lacking nscd Emacs will still work well enough with this change; it’s just that it won’t respond to changes in /etc/resolv.conf. * configure.ac (HAVE_RES_INIT): Remove. Worry about -lresolv only when configured --with-hesiod. Hesiod is still used; see, e.g.: https://soylentnews.org/meta/article.pl?sid=15/07/13/0255214 * src/Makefile.in (LIBRESOLV): Remove. All uses removed.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/process.c b/src/process.c
index f40e8e53a24..85a4885bbf4 100644
--- a/src/process.c
+++ b/src/process.c
@@ -75,11 +75,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
75# include <sys/stropts.h> 75# include <sys/stropts.h>
76#endif 76#endif
77 77
78#ifdef HAVE_RES_INIT
79#include <arpa/nameser.h>
80#include <resolv.h>
81#endif
82
83#ifdef HAVE_UTIL_H 78#ifdef HAVE_UTIL_H
84#include <util.h> 79#include <util.h>
85#endif 80#endif
@@ -3827,10 +3822,6 @@ usage: (make-network-process &rest ARGS) */)
3827 immediate_quit = 1; 3822 immediate_quit = 1;
3828 QUIT; 3823 QUIT;
3829 3824
3830#ifdef HAVE_RES_INIT
3831 res_init ();
3832#endif
3833
3834 struct addrinfo hints; 3825 struct addrinfo hints;
3835 memset (&hints, 0, sizeof hints); 3826 memset (&hints, 0, sizeof hints);
3836 hints.ai_family = family; 3827 hints.ai_family = family;
@@ -3910,10 +3901,6 @@ usage: (make-network-process &rest ARGS) */)
3910 immediate_quit = 1; 3901 immediate_quit = 1;
3911 QUIT; 3902 QUIT;
3912 3903
3913#ifdef HAVE_RES_INIT
3914 res_init ();
3915#endif
3916
3917 host_info_ptr = gethostbyname ((const char *) SDATA (host)); 3904 host_info_ptr = gethostbyname ((const char *) SDATA (host));
3918 immediate_quit = 0; 3905 immediate_quit = 0;
3919 3906