diff options
Diffstat (limited to 'usr.sbin/bgpd/buffer.c')
-rw-r--r-- | usr.sbin/bgpd/buffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/buffer.c b/usr.sbin/bgpd/buffer.c index b670d69c6eb..4311e2f709e 100644 --- a/usr.sbin/bgpd/buffer.c +++ b/usr.sbin/bgpd/buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: buffer.c,v 1.23 2004/08/17 15:59:34 henning Exp $ */ +/* $OpenBSD: buffer.c,v 1.24 2004/09/14 22:26:09 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -172,7 +172,7 @@ msgbuf_write(struct msgbuf *msgbuf) } if ((n = sendmsg(msgbuf->fd, &msg, 0)) == -1) { - if (errno == EAGAIN) /* cannot write immediately */ + if (errno == EAGAIN || errno == ENOBUFS) /* try later */ return (0); else return (-1); |