]> jfr.im git - solanum.git/commitdiff
librb: make free_fds() public as rb_close_pending_fds()
authorAriadne Conill <redacted>
Sat, 19 Jun 2021 10:41:17 +0000 (04:41 -0600)
committerDoug Freed <redacted>
Sat, 31 Jul 2021 04:05:59 +0000 (00:05 -0400)
librb/include/rb_commio.h
librb/src/commio.c

index 7e95b5721b08086ec6cfd9805952b47a984f5c42..dde5ca9c7a8ace268c1fbe7088cfe9a04c764fdb 100644 (file)
@@ -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
index 83ca3ed1b478f3b0429a2d44e5df56a174ac4af2..a41142485a4bbbbe512b4777d0a401ef90e68301 100644 (file)
@@ -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;
 }