From: Malte S. Stretz Date: Thu, 13 Aug 2009 13:43:20 +0000 (+0000) Subject: libs/lucid: revert main state on startup to prevent accumulation. X-Git-Tag: 0.10.0~1198 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=8f580be880db9c79613434d4dfce65e864281944;p=project%2Fluci.git libs/lucid: revert main state on startup to prevent accumulation. A proper SIGTERM handling needs support in nixio first. --- diff --git a/libs/lucid/luasrc/lucid.lua b/libs/lucid/luasrc/lucid.lua index 4feb159a50..e1d73227f1 100644 --- a/libs/lucid/luasrc/lucid.lua +++ b/libs/lucid/luasrc/lucid.lua @@ -43,6 +43,8 @@ local SSTATE = "/tmp/.lucid_store" --- Starts a new LuCId superprocess. function start() + state:revert(UCINAME, "main") + prepare() local detach = cursor:get(UCINAME, "main", "daemonize")