summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-06-20 18:03:26 +0000
committerhenning <henning@openbsd.org>2004-06-20 18:03:26 +0000
commit61780fdff2959d46145ccf335560c5c62a46b28d (patch)
tree400a00a61c919329d3928f874b87a814b215da2d
parentadd the VNDIOCGET ioctl to vnode disks, ok millert@ (diff)
downloadwireguard-openbsd-61780fdff2959d46145ccf335560c5c62a46b28d.tar.xz
wireguard-openbsd-61780fdff2959d46145ccf335560c5c62a46b28d.zip
argh, don't want to shutdown the socket in the parent after sending,
just plain close
-rw-r--r--usr.sbin/bgpd/buffer.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/bgpd/buffer.c b/usr.sbin/bgpd/buffer.c
index 087cc0e4f69..46d498bd1d2 100644
--- a/usr.sbin/bgpd/buffer.c
+++ b/usr.sbin/bgpd/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.19 2004/06/20 17:49:46 henning Exp $ */
+/* $OpenBSD: buffer.c,v 1.20 2004/06/20 18:03:26 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -184,10 +184,8 @@ msgbuf_write(struct msgbuf *msgbuf)
return (-2);
}
- if (buf != NULL && buf->fd != -1) {
- shutdown(buf->fd, SHUT_RDWR);
+ if (buf != NULL && buf->fd != -1)
close(buf->fd);
- }
for (buf = TAILQ_FIRST(&msgbuf->bufs); buf != NULL && n > 0;
buf = next) {