From 0793612583f480c051c9b4c6521a225063c758ab Mon Sep 17 00:00:00 2001 From: jow Date: Mon, 18 Jun 2012 00:41:43 +0000 Subject: [package] uhttpd: finish inherited uloop in forked childs, fixes misdispatched events leading to race conditions and bad memory accesses git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@32419 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- uhttpd-lua.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'uhttpd-lua.c') 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]); -- cgit v1.2.1