changeset 12378:3171d5da8a86

(Fopen_network_stream): Sleep 1 sec before connect retry.
author Richard M. Stallman <rms@gnu.org>
date Sun, 25 Jun 1995 18:57:25 +0000
parents 3cd65cb4c643
children 7149fc03ea56
files src/process.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Sun Jun 25 03:06:56 1995 +0000
+++ b/src/process.c	Sun Jun 25 18:57:25 1995 +0000
@@ -1658,6 +1658,10 @@
 	goto loop;
       if (errno == EADDRINUSE && retry < 20)
 	{
+	  /* A delay here is needed on some FreeBSD systems,
+	     and it is harmless, since this retrying takes time anyway
+	     and should be infrequent.  */
+	  Fsleep_for (make_number (1), Qnil);
 	  retry++;
 	  goto loop;
 	}