diff --git a/librb/include/rb_commio.h b/librb/include/rb_commio.h index 7e95b572..dde5ca9c 100644 --- a/librb/include/rb_commio.h +++ b/librb/include/rb_commio.h @@ -90,6 +90,7 @@ rb_fde_t *rb_open(int, uint8_t, const char *); void rb_close(rb_fde_t *); void rb_dump_fd(DUMPCB *, void *xdata); void rb_note(rb_fde_t *, const char *); +void rb_close_pending_fds(void); /* Type of IO */ #define RB_SELECT_READ 0x1 diff --git a/librb/src/commio.c b/librb/src/commio.c index 83ca3ed1..a4114248 100644 --- a/librb/src/commio.c +++ b/librb/src/commio.c @@ -100,8 +100,8 @@ remove_fd(rb_fde_t *F) rb_dlinkMoveNode(&F->node, &rb_fd_table[rb_hash_fd(F->fd)], &closed_list); } -static void -free_fds(void) +void +rb_close_pending_fds(void) { rb_fde_t *F; rb_dlink_node *ptr, *next; @@ -2239,7 +2239,7 @@ int rb_select(unsigned long timeout) { int ret = select_handler(timeout); - free_fds(); + rb_close_pending_fds(); return ret; }