diff options
author | deraadt <deraadt@openbsd.org> | 2013-03-11 17:40:09 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2013-03-11 17:40:09 +0000 |
commit | 62e3c2528255beec34fe0acd77e74b042a0926c6 (patch) | |
tree | 1c7e4070f2f682e9d9017be26794ca4197437d0e /usr.sbin/iscsid | |
parent | When binding a lease, check for and clear out any 'zombie' routes (diff) | |
download | wireguard-openbsd-62e3c2528255beec34fe0acd77e74b042a0926c6.tar.xz wireguard-openbsd-62e3c2528255beec34fe0acd77e74b042a0926c6.zip |
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...
Diffstat (limited to 'usr.sbin/iscsid')
-rw-r--r-- | usr.sbin/iscsid/control.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/iscsid/control.c b/usr.sbin/iscsid/control.c index 1621a576339..ba75afa31e3 100644 --- a/usr.sbin/iscsid/control.c +++ b/usr.sbin/iscsid/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.3 2012/04/11 08:16:37 claudio Exp $ */ +/* $OpenBSD: control.c,v 1.4 2013/03/11 17:40:11 deraadt Exp $ */ /* * Copyright (c) 2010 Claudio Jeker <claudio@openbsd.org> @@ -165,7 +165,8 @@ control_accept(int listenfd, short event, void *bula) event_del(&control_state->ev); evtimer_add(&control_state->evt, &evtpause); - } else if (errno != EWOULDBLOCK && errno != EINTR) + } else if (errno != EWOULDBLOCK && errno != EINTR && + errno != ECONNABORTED) log_warn("control_accept"); return; } |