summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-06-25 18:57:25 +0000
committerRichard M. Stallman <rms@gnu.org>1995-06-25 18:57:25 +0000
commit4590788aa92a70d958977e229fa608eaf52143e5 (patch)
treed10a7eb3dcc88bccb54d0d231e9a23e33df92e57 /src
parenta9db66a4f1f842944907741070816f98cc4fb3eb (diff)
downloademacs-4590788aa92a70d958977e229fa608eaf52143e5.tar.gz
(Fopen_network_stream): Sleep 1 sec before connect retry.
Diffstat (limited to 'src')
-rw-r--r--src/process.c4
1 files changed, 4 insertions, 0 deletions
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;
}