projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make uh_path_lookup static
[project/uhttpd.git]
/
listen.c
diff --git
a/listen.c
b/listen.c
index
55d7143
..
c4b6b2b
100644
(file)
--- a/
listen.c
+++ b/
listen.c
@@
-37,6
+37,14
@@
struct listener {
static LIST_HEAD(listeners);
static int n_blocked;
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);
static void uh_block_listener(struct listener *l)
{
uloop_fd_delete(&l->fd);