summaryrefslogtreecommitdiff
path: root/src/main_loop.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_loop.lua')
-rw-r--r--src/main_loop.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main_loop.lua b/src/main_loop.lua
index 22809aa..2a34477 100644
--- a/src/main_loop.lua
+++ b/src/main_loop.lua
@@ -91,8 +91,8 @@ function main_loop(opt)
log.printf(log.DEBUG, "waitpid failed: " .. reason)
end
else
- log.printf(log.DEBUG, "child with pid %d stopped, reason: %s, code: %s", child.pid, reason, tostring(status))
- if(child.cleanup ~= nil) then child:cleanup() end
+ log.printf(log.DEBUG, "child with pid %d stopped, reason: %s, status: %s", child.pid, reason, status)
+ if(child.cleanup ~= nil) then child:cleanup(reason, status) end
end
elseif(err == "signal") then
-- ignore this