From 4590788aa92a70d958977e229fa608eaf52143e5 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 25 Jun 1995 18:57:25 +0000 Subject: [PATCH] (Fopen_network_stream): Sleep 1 sec before connect retry. --- src/process.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/process.c b/src/process.c index c37aa1ce9ef..adecb580634 100644 --- a/src/process.c +++ b/src/process.c @@ -1658,6 +1658,10 @@ Fourth arg SERVICE is name of the service desired, or an integer\n\ 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; } -- 2.39.2