summaryrefslogtreecommitdiff
path: root/listen.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-31 18:49:08 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-12-31 18:49:08 +0100
commit8515c92b9302b258be10df5c5cee240dd4b137f6 (patch)
tree81a74986f105cec6dc5306d1979af0860843a387 /listen.c
parentd779a5dc390b9c6e1ed32cdd287997f81ee88d37 (diff)
make uh_path_lookup static
Diffstat (limited to 'listen.c')
-rw-r--r--listen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/listen.c b/listen.c
index 55d7143..c4b6b2b 100644
--- a/listen.c
+++ b/listen.c
@@ -37,6 +37,14 @@ struct listener {
static LIST_HEAD(listeners);
static int n_blocked;
+void uh_close_listen_fds(void)
+{
+ struct listener *l;
+
+ list_for_each_entry(l, &listeners, list)
+ close(l->fd.fd);
+}
+
static void uh_block_listener(struct listener *l)
{
uloop_fd_delete(&l->fd);