From 1694d84df975b203840914a9199e0149b73f0be4 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Fri, 23 Jan 2004 17:59:29 +0000 Subject: sync comments with reality and properly log accept() errors --- usr.sbin/bgpd/session.c | 8 ++------ 1 file 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 @@ -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); -- cgit v1.2.3