From 992e71fb1eb27d0e5b39f16328cfd34968b8d503 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 3 Nov 1998 20:16:01 +0000 Subject: Back out previous change, the problem is Linux-specific. To quote Wietse 'On UNIX systems with a BSD TCP/IP protocol stack, the accept() call does not return until the three-way handshake completes.' --- usr.sbin/sendmail/src/daemon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.sbin') diff --git a/usr.sbin/sendmail/src/daemon.c b/usr.sbin/sendmail/src/daemon.c index 1e1c2d308fe..dc0b5b5bd2d 100644 --- a/usr.sbin/sendmail/src/daemon.c +++ b/usr.sbin/sendmail/src/daemon.c @@ -293,8 +293,7 @@ getrequests(e) lotherend = socksize; t = accept(DaemonSocket, (struct sockaddr *)&RealHostAddr, &lotherend); - if (t >= 0 || (errno != EINTR && errno != ENETUNREACH - && errno != EHOSTUNREACH)) + if (t >= 0 || errno != EINTR) break; } savederrno = errno; -- cgit v1.2.3