diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-06-20 18:03:27 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-06-20 18:03:27 +0000 |
commit | eeba73d47cf7d6e74006ac0a29476841e78afee2 (patch) | |
tree | 3729780cd8877d1a652733edfb2ccfbdc465fa2c /usr.sbin/bgpd | |
parent | db36f64249970e7c6115b1cb6324e8dca351fbee (diff) |
argh, don't want to shutdown the socket in the parent after sending,
just plain close
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/buffer.c | 6 |
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) { |