1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 16:51:06 -07:00

(Fopen_network_stream): Call bind_polling_period earlier.

This commit is contained in:
Karl Heuer 1995-12-21 17:13:25 +00:00
parent 113620cc87
commit 798b64bbf6

View file

@ -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)