summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/packet.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2013-11-26 11:59:39 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2013-11-26 11:59:39 +0000
commit3536ffb298a32547a6a1503070872df73a273559 (patch)
tree2436577458cb75b84c0391557d5a9627f327fd24 /usr.sbin/ldpd/packet.c
parent85eb5acee35a0e3570c309cf3d1db2713aa83c25 (diff)
deal with msgbuf_write EAGAIN, ok gilles benno
Diffstat (limited to 'usr.sbin/ldpd/packet.c')
-rw-r--r--usr.sbin/ldpd/packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ldpd/packet.c b/usr.sbin/ldpd/packet.c
index c063b115652..4b4bc8bc9f5 100644
--- a/usr.sbin/ldpd/packet.c
+++ b/usr.sbin/ldpd/packet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: packet.c,v 1.33 2013/10/17 17:47:05 renato Exp $ */
+/* $OpenBSD: packet.c,v 1.34 2013/11/26 11:59:38 henning Exp $ */
/*
* Copyright (c) 2009 Michele Marchetto <michele@openbsd.org>
@@ -507,7 +507,7 @@ session_write(int fd, short event, void *arg)
struct nbr *nbr = tcp->nbr;
if (event & EV_WRITE) {
- if (msgbuf_write(&tcp->wbuf.wbuf) == -1) {
+ if (msgbuf_write(&tcp->wbuf.wbuf) == -1 && errno != EAGAIN) {
if (nbr)
nbr_fsm(nbr, NBR_EVT_CLOSE_SESSION);
}