debug info

This commit is contained in:
云风
2012-09-15 16:38:28 +08:00
parent c19846c3a5
commit 7e5ab8c48c
3 changed files with 26 additions and 2 deletions

View File

@@ -26,6 +26,15 @@ function command.STAT()
skynet.ret(skynet.pack(list))
end
function command.INFO(handle)
if services[handle] == nil then
skynet.ret(skynet.pack(nil))
else
local result = skynet.call(handle,"debug","INFO")
skynet.ret(skynet.pack(result))
end
end
function command.KILL(handle)
skynet.kill(handle)
skynet.ret( skynet.pack({ [handle] = tostring(services[handle]) }))