From: Steven Barth Date: Mon, 2 Nov 2009 15:59:44 +0000 (+0000) Subject: LuCId: Watch threads in debug mode X-Git-Tag: 0.10.0~989 X-Git-Url: http://git.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=86e00cb771b81dce8d9629326a5c25b92a024d04 LuCId: Watch threads in debug mode --- diff --git a/libs/lucid/luasrc/lucid.lua b/libs/lucid/luasrc/lucid.lua index 7a9c4abdfd..5d62a6cd8f 100644 --- a/libs/lucid/luasrc/lucid.lua +++ b/libs/lucid/luasrc/lucid.lua @@ -145,6 +145,7 @@ function run() local pid, stat, code = nixio.wait(-1, "nohang") while pid and pid > 0 do + nixio.syslog("info", "Buried thread: " .. pid) if tpids[pid] then tcount = tcount - 1 if tpids[pid] ~= true then @@ -233,6 +234,7 @@ function create_process(threadcb, waitcb) end local pid, code, err = nixio.fork() if pid and pid ~= 0 then + nixio.syslog("info", "Created thread: " .. pid) tpids[pid] = waitcb or true tcount = tcount + 1 elseif pid == 0 then