aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorKarl Heuer1995-12-21 17:13:25 +0000
committerKarl Heuer1995-12-21 17:13:25 +0000
commit798b64bbf67df09a69e91f8184974bf7cca3af83 (patch)
treec90586d8faba10bae7b840f328596f24733ef78a /src/process.c
parent113620cc876f15f38ac0719490dae15f92c93641 (diff)
downloademacs-798b64bbf67df09a69e91f8184974bf7cca3af83.tar.gz
emacs-798b64bbf67df09a69e91f8184974bf7cca3af83.zip
(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\
1643 port = svc_info->s_port; 1643 port = svc_info->s_port;
1644 } 1644 }
1645 1645
1646 /* Slow down polling to every ten seconds.
1647 Some kernels have a bug which causes retrying connect to fail
1648 after a connect. Polling can interfere with gethostbyname too. */
1649#ifdef POLL_FOR_INPUT
1650 bind_polling_period (10);
1651#endif
1652
1646#ifndef TERM 1653#ifndef TERM
1647 while (1) 1654 while (1)
1648 { 1655 {
@@ -1697,13 +1704,6 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\
1697 if (interrupt_input) 1704 if (interrupt_input)
1698 unrequest_sigio (); 1705 unrequest_sigio ();
1699 1706
1700 /* Slow down polling to every ten seconds.
1701 Some kernels have a bug which causes retrying connect to fail
1702 after a connect. */
1703#ifdef POLL_FOR_INPUT
1704 bind_polling_period (10);
1705#endif
1706
1707 loop: 1707 loop:
1708 if (connect (s, (struct sockaddr *) &address, sizeof address) == -1 1708 if (connect (s, (struct sockaddr *) &address, sizeof address) == -1
1709 && errno != EISCONN) 1709 && errno != EISCONN)