From 039b61c058ed96cb3a888f9dee21bca7997f0a39 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 11 Mar 2013 17:40:12 +0000 Subject: handle ECONNABORTED errors from accept(). In many code blocks they can be ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories... --- usr.sbin/ldpd/packet.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'usr.sbin/ldpd/packet.c') diff --git a/usr.sbin/ldpd/packet.c b/usr.sbin/ldpd/packet.c index 5a5880d162f..1d3ca1ff953 100644 --- a/usr.sbin/ldpd/packet.c +++ b/usr.sbin/ldpd/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.16 2012/04/12 17:33:43 claudio Exp $ */ +/* $OpenBSD: packet.c,v 1.17 2013/03/11 17:40:11 deraadt Exp $ */ /* * Copyright (c) 2009 Michele Marchetto @@ -268,7 +268,8 @@ session_accept(int fd, short event, void *bula) */ if (errno == ENFILE || errno == EMFILE) { accept_pause(); - } else if (errno != EWOULDBLOCK && errno != EINTR) + } else if (errno != EWOULDBLOCK && errno != EINTR && + errno != ECONNABORTED) log_debug("sess_recv_packet: accept error: %s", strerror(errno)); return; -- cgit v1.2.3