summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-23 17:59:29 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-23 17:59:29 +0000
commit1694d84df975b203840914a9199e0149b73f0be4 (patch)
treea3dab7c0ce3c994006534a86f53c91b67a7dddb7
parente398d76a8307454ceb3dbeab356adaf6a63e824c (diff)
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);