LuCId: Watch threads in debug mode
This commit is contained in:
parent
ffae6adf66
commit
86e00cb771
1 changed files with 2 additions and 0 deletions
|
@ -145,6 +145,7 @@ function run()
|
||||||
|
|
||||||
local pid, stat, code = nixio.wait(-1, "nohang")
|
local pid, stat, code = nixio.wait(-1, "nohang")
|
||||||
while pid and pid > 0 do
|
while pid and pid > 0 do
|
||||||
|
nixio.syslog("info", "Buried thread: " .. pid)
|
||||||
if tpids[pid] then
|
if tpids[pid] then
|
||||||
tcount = tcount - 1
|
tcount = tcount - 1
|
||||||
if tpids[pid] ~= true then
|
if tpids[pid] ~= true then
|
||||||
|
@ -233,6 +234,7 @@ function create_process(threadcb, waitcb)
|
||||||
end
|
end
|
||||||
local pid, code, err = nixio.fork()
|
local pid, code, err = nixio.fork()
|
||||||
if pid and pid ~= 0 then
|
if pid and pid ~= 0 then
|
||||||
|
nixio.syslog("info", "Created thread: " .. pid)
|
||||||
tpids[pid] = waitcb or true
|
tpids[pid] = waitcb or true
|
||||||
tcount = tcount + 1
|
tcount = tcount + 1
|
||||||
elseif pid == 0 then
|
elseif pid == 0 then
|
||||||
|
|
Loading…
Reference in a new issue