summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-09-14 22:26:10 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-09-14 22:26:10 +0000
commit3f667ab78650f11a555a38d5098b15050f1d9680 (patch)
tree5c36beee16f6c1f90a8643bec8559d424027c6e9 /usr.sbin
parentb307515eac98d29c6b6760f23d0bf5e7ed76317c (diff)
treat ENOBUFS like EAGAIN and try later
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/buffer.c4
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);