summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1995-12-21 17:13:25 +0000
committerKarl Heuer <kwzh@gnu.org>1995-12-21 17:13:25 +0000
commit798b64bbf67df09a69e91f8184974bf7cca3af83 (patch)
treec90586d8faba10bae7b840f328596f24733ef78a /src/process.c
parent113620cc876f15f38ac0719490dae15f92c93641 (diff)
downloademacs-798b64bbf67df09a69e91f8184974bf7cca3af83.tar.gz
(Fopen_network_stream): Call bind_polling_period earlier.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c
index 115eb8faca4..1afb701dd28 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1643,6 +1643,13 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
port = svc_info->s_port;
}
+ /* Slow down polling to every ten seconds.
+ Some kernels have a bug which causes retrying connect to fail
+ after a connect. Polling can interfere with gethostbyname too. */
+#ifdef POLL_FOR_INPUT
+ bind_polling_period (10);
+#endif
+
#ifndef TERM
while (1)
{
@@ -1697,13 +1704,6 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
if (interrupt_input)
unrequest_sigio ();
- /* Slow down polling to every ten seconds.
- Some kernels have a bug which causes retrying connect to fail
- after a connect. */
-#ifdef POLL_FOR_INPUT
- bind_polling_period (10);
-#endif
-
loop:
if (connect (s, (struct sockaddr *) &address, sizeof address) == -1
&& errno != EISCONN)