*** zebra/bgpd/bgp_dump.c.ORIG Tue Jul 15 12:22:28 2003 --- zebra/bgpd/bgp_dump.c Wed Jul 16 11:58:49 2003 *************** *** 312,317 **** --- 328,339 ---- { bgp_dump_routes_func (AFI_IP); bgp_dump_routes_func (AFI_IP6); + /* + * james@ripe.net 2003-07-16: + * Close the file now. For a RIB dump there's no point in leaving + * it open until the next scheduled dump starts. + */ + fclose(bgp_dump->fp); bgp_dump->fp = NULL; } /* if interval is set reschedule */