summaryrefslogtreecommitdiffhomepage
path: root/libs/lucid/luasrc/lucid.lua
diff options
context:
space:
mode:
authorMalte S. Stretz <mss@apache.org>2009-08-13 13:43:20 +0000
committerMalte S. Stretz <mss@apache.org>2009-08-13 13:43:20 +0000
commit8f580be880db9c79613434d4dfce65e864281944 (patch)
tree8a3f888a690b8e4d9421743994e2382ec4be7554 /libs/lucid/luasrc/lucid.lua
parentb48418f314cafaf9df29ba51c7219d3ba6947535 (diff)
libs/lucid: revert main state on startup to prevent accumulation.
A proper SIGTERM handling needs support in nixio first.
Diffstat (limited to 'libs/lucid/luasrc/lucid.lua')
-rw-r--r--libs/lucid/luasrc/lucid.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/lucid/luasrc/lucid.lua b/libs/lucid/luasrc/lucid.lua
index 4feb159a5..e1d73227f 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")