# HG changeset patch # User Karl Heuer # Date 819566005 0 # Node ID 5e0cbd5fcb46729afae5a52ca873b04b1c4ddcc0 # Parent 8160ed43603e16f8472166d670116a13e97edd2a (Fopen_network_stream): Call bind_polling_period earlier. diff -r 8160ed43603e -r 5e0cbd5fcb46 src/process.c --- a/src/process.c Thu Dec 21 17:12:52 1995 +0000 +++ b/src/process.c Thu Dec 21 17:13:25 1995 +0000 @@ -1643,6 +1643,13 @@ 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 @@ 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)