diff options
author | Steven Barth <steven@midlink.org> | 2009-11-02 15:59:44 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-11-02 15:59:44 +0000 |
commit | 86e00cb771b81dce8d9629326a5c25b92a024d04 (patch) | |
tree | 8929e9351c67b092f3cb1d8a76ff9966b662545e /libs/lucid | |
parent | ffae6adf662a943a73430b8156b47005f987cb0d (diff) |
LuCId: Watch threads in debug mode
Diffstat (limited to 'libs/lucid')
-rw-r--r-- | libs/lucid/luasrc/lucid.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/lucid/luasrc/lucid.lua b/libs/lucid/luasrc/lucid.lua index 7a9c4abdf..5d62a6cd8 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 |