summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-01-23 17:59:28 +0000
committerhenning <henning@openbsd.org>2004-01-23 17:59:28 +0000
commit9def7542b8da204159af5b589eecf518179a2bdd (patch)
treeda00e9235a9781bdc5f4aaa579734dd1548093a2
parentFix issue pointed out with ls not handling large directories with embeded (diff)
downloadwireguard-openbsd-9def7542b8da204159af5b589eecf518179a2bdd.tar.xz
wireguard-openbsd-9def7542b8da204159af5b589eecf518179a2bdd.zip
sync comments with reality and properly log accept() errors
-rw-r--r--usr.sbin/bgpd/session.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index cab18a78ecc..f85b3c30f5d 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.92 2004/01/22 20:59:17 henning Exp $ */
+/* $OpenBSD: session.c,v 1.93 2004/01/23 17:59:28 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -687,17 +687,13 @@ session_accept(int listenfd)
struct sockaddr_in cliaddr;
struct peer *p = NULL;
- /* collision detection, 6.8, missing */
-
len = sizeof(cliaddr);
if ((connfd = accept(listenfd,
(struct sockaddr *)&cliaddr, &len)) == -1) {
if (errno == EWOULDBLOCK || errno == EINTR)
- /* EINTR check needed? stevens says yes */
return;
else
- /* what do we do here? log & ignore? */
- ;
+ log_warn("accept");
}
p = getpeerbyip(cliaddr.sin_addr.s_addr);