summaryrefslogtreecommitdiff
path: root/uhttpd-lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'uhttpd-lua.c')
-rw-r--r--uhttpd-lua.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/uhttpd-lua.c b/uhttpd-lua.c
index 0b91b34..5158534 100644
--- a/uhttpd-lua.c
+++ b/uhttpd-lua.c
@@ -397,6 +397,9 @@ bool uh_lua_request(struct client *cl, lua_State *L)
sleep(atoi(getenv("UHTTPD_SLEEP_ON_FORK") ?: "0"));
#endif
+ /* do not leak parent epoll descriptor */
+ uloop_done();
+
/* close loose pipe ends */
close(rfd[0]);
close(wfd[1]);