projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffae6ad
)
LuCId: Watch threads in debug mode
author
Steven Barth
<steven@midlink.org>
Mon, 2 Nov 2009 15:59:44 +0000
(15:59 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 2 Nov 2009 15:59:44 +0000
(15:59 +0000)
libs/lucid/luasrc/lucid.lua
patch
|
blob
|
history
diff --git
a/libs/lucid/luasrc/lucid.lua
b/libs/lucid/luasrc/lucid.lua
index 7a9c4abdfd2f6668cab415b0010d8f782d40aa64..5d62a6cd8f4a1bfae01598fbb434eb3302c9919a 100644
(file)
--- 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