comparison src/process.c @ 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 41bd44279127
children 4ad7be34ece1
comparison
equal deleted inserted replaced
12377:3cd65cb4c643 12378:3171d5da8a86
1656 1656
1657 if (errno == EINTR) 1657 if (errno == EINTR)
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 }
1664 1668
1665 close (s); 1669 close (s);