libs/lucid: revert main state on startup to prevent accumulation.
authorMalte S. Stretz <mss@apache.org>
Thu, 13 Aug 2009 13:43:20 +0000 (13:43 +0000)
committerMalte S. Stretz <mss@apache.org>
Thu, 13 Aug 2009 13:43:20 +0000 (13:43 +0000)
A proper SIGTERM handling needs support in nixio first.

libs/lucid/luasrc/lucid.lua

index 4feb159a50a6c662665e77d352fbe315b58b81ff..e1d73227f1cc4ca8c5bdce63fe4d39df688fdb4b 100644 (file)
@@ -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")