From 3f667ab78650f11a555a38d5098b15050f1d9680 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 14 Sep 2004 22:26:10 +0000 Subject: treat ENOBUFS like EAGAIN and try later --- usr.sbin/bgpd/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin') 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 @@ -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); -- cgit v1.2.3