summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/session.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-04 03:51:32 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-04 03:51:32 +0000
commit19dc9d31e9066fe484f3eeae0f4930c1f480e1c8 (patch)
tree9edd1679244ee8f25d85ff6eca3161773559a306 /usr.sbin/bgpd/session.c
parent8a66a965f7ea065f86f9f74241ba8cb602a8fde6 (diff)
2 more file descriptors for each RDE and SE inherited from the parent
we should close
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r--usr.sbin/bgpd/session.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index 91fa899164b..83b8b7c28a3 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.181 2004/07/03 17:19:59 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.182 2004/07/04 03:51:31 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -158,7 +158,7 @@ setup_listeners(u_int *la_cnt)
int
session_main(struct bgpd_config *config, struct peer *cpeers,
struct network_head *net_l, struct filter_head *rules,
- struct mrt_head *m_l, int pipe_m2s[2], int pipe_s2r[2])
+ struct mrt_head *m_l, int pipe_m2s[2], int pipe_s2r[2], int pipe_m2r[2])
{
int nfds, i, j, timeout;
int idx_peers, idx_listeners, idx_mrts;
@@ -224,6 +224,8 @@ session_main(struct bgpd_config *config, struct peer *cpeers,
log_info("session engine ready");
close(pipe_m2s[0]);
close(pipe_s2r[1]);
+ close(pipe_m2r[0]);
+ close(pipe_m2r[1]);
init_conf(conf);
imsg_init(&ibuf_rde, pipe_s2r[0]);
imsg_init(&ibuf_main, pipe_m2s[1]);