Fix a mrt fd leak by moving the block which closes finished dumps.
authorclaudio <claudio@openbsd.org>
Wed, 14 Jul 2010 09:00:08 +0000 (09:00 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 14 Jul 2010 09:00:08 +0000 (09:00 +0000)
commitf978e058811dff0be94d669050e12567aefd6cea
treeb4e1b80c75e1625f14e8e9728871d3e600097b9c
parenta2c731e1edad1a88f1c15ddacb5ea3d5ed3931c6
Fix a mrt fd leak by moving the block which closes finished dumps.
The previous location also depended on poll results and in most cases was
therefor not entered because finished dumps are not added to the poll array.
Problem reported by Peter Haag, OK henning@
usr.sbin/bgpd/rde.c