summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpctl/bgpctl.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-01-10 21:04:38 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-01-10 21:04:38 +0000
commitceb96ca370f38e31423d047d24ebd2644c732c16 (patch)
treea987531f2effcd444dab89be5b5f28ae478e4b10 /usr.sbin/bgpctl/bgpctl.c
parentca61b7be5087dc21b32e2ad86c98e8fff9894157 (diff)
as buf_close does not implictely writes any more, imsg_compose doesn't
either, so we need to call msgbuf_write explictely now. ok claudio@
Diffstat (limited to 'usr.sbin/bgpctl/bgpctl.c')
-rw-r--r--usr.sbin/bgpctl/bgpctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/bgpctl/bgpctl.c b/usr.sbin/bgpctl/bgpctl.c
index 5b01a3cca9d..1c40f0a3e50 100644
--- a/usr.sbin/bgpctl/bgpctl.c
+++ b/usr.sbin/bgpctl/bgpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bgpctl.c,v 1.23 2004/01/09 19:09:45 henning Exp $ */
+/* $OpenBSD: bgpctl.c,v 1.24 2004/01/10 21:04:37 henning Exp $ */
/*
* Copyright (c) 2003 Henning Brauer <henning@openbsd.org>
@@ -235,6 +235,10 @@ again:
break;
}
+ while (ibuf.w.queued)
+ if (msgbuf_write(&ibuf.w) < 0)
+ err(1, "write error");
+
while (!done) {
if ((n = imsg_read(&ibuf)) == -1)
errx(1, "imsg_read error");