diff options
author | minoura <minoura@pkgsrc.org> | 2000-03-09 16:00:09 +0000 |
---|---|---|
committer | minoura <minoura@pkgsrc.org> | 2000-03-09 16:00:09 +0000 |
commit | b1e2e3915a33d5377e0f759672fafc3e13ea61fa (patch) | |
tree | 951ee1b8bb0129005cf47da969059309c049d9c4 /editors/emacs/patches | |
parent | 50f2df320b67712166376d11f2e29c5328737eaf (diff) | |
download | pkgsrc-b1e2e3915a33d5377e0f759672fafc3e13ea61fa.tar.gz |
Quit the address loop after a successful connection, to avoid
multiple connection to a v4/v6 host.
Pointed out by IWAMOTO Toshihiro <iwamoto@sat.t.u-tokyo.ac.jp>.
Diffstat (limited to 'editors/emacs/patches')
-rw-r--r-- | editors/emacs/patches/patch-aj | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/editors/emacs/patches/patch-aj b/editors/emacs/patches/patch-aj index bd92ffb4c31..2c9ef872f58 100644 --- a/editors/emacs/patches/patch-aj +++ b/editors/emacs/patches/patch-aj @@ -1,4 +1,4 @@ -$NetBSD: patch-aj,v 1.3 2000/03/01 05:07:41 minoura Exp $ +$NetBSD: patch-aj,v 1.4 2000/03/09 16:00:10 minoura Exp $ From lha@stacken.kth.se Mon Feb 28 03:43:18 2000 Date: Sun, 27 Feb 2000 16:26:07 +0100 @@ -20,8 +20,8 @@ Thanks, Love ---- src/process.c.orig Thu Jul 8 00:36:24 1999 -+++ src/process.c Sun Feb 27 16:03:33 2000 +--- src/process.c.orig Thu Jul 8 07:36:24 1999 ++++ src/process.c Fri Mar 10 00:42:11 2000 @@ -1,7 +1,18 @@ +/* + * Locally hacked process.c to add ipv6 support. -wsr @@ -99,7 +99,7 @@ Love /* Slow down polling to every ten seconds. Some kernels have a bug which causes retrying connect to fail -@@ -1846,6 +1882,84 @@ +@@ -1846,6 +1882,86 @@ #endif #ifndef TERM @@ -177,6 +177,8 @@ Love + Fcons (host, Fcons (name, Qnil))); + } + } ++ else ++ break; + } /* address loop */ + freeaddrinfo(res); +#else /* HAVE_GETADDRINFO */ @@ -184,7 +186,7 @@ Love while (1) { #ifdef TRY_AGAIN -@@ -1936,6 +2050,7 @@ +@@ -1936,6 +2052,7 @@ report_file_error ("connection failed", Fcons (host, Fcons (name, Qnil))); } |