diff options
| author | Richard M. Stallman | 1995-06-25 18:57:25 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-06-25 18:57:25 +0000 |
| commit | 4590788aa92a70d958977e229fa608eaf52143e5 (patch) | |
| tree | d10a7eb3dcc88bccb54d0d231e9a23e33df92e57 /src/process.c | |
| parent | a9db66a4f1f842944907741070816f98cc4fb3eb (diff) | |
| download | emacs-4590788aa92a70d958977e229fa608eaf52143e5.tar.gz emacs-4590788aa92a70d958977e229fa608eaf52143e5.zip | |
(Fopen_network_stream): Sleep 1 sec before connect retry.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 4 |
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\ | |||
| 1658 | goto loop; | 1658 | goto loop; |
| 1659 | if (errno == EADDRINUSE && retry < 20) | 1659 | if (errno == EADDRINUSE && retry < 20) |
| 1660 | { | 1660 | { |
| 1661 | /* A delay here is needed on some FreeBSD systems, | ||
| 1662 | and it is harmless, since this retrying takes time anyway | ||
| 1663 | and should be infrequent. */ | ||
| 1664 | Fsleep_for (make_number (1), Qnil); | ||
| 1661 | retry++; | 1665 | retry++; |
| 1662 | goto loop; | 1666 | goto loop; |
| 1663 | } | 1667 | } |