add debug command inject

This commit is contained in:
Cloud Wu
2014-08-13 21:02:56 +08:00
parent 809e6c3a89
commit 6bf8dd9a31
5 changed files with 100 additions and 27 deletions

View File

@@ -28,26 +28,6 @@ function command.STAT()
return list
end
function command.INFO(_, handle)
handle = handle_to_address(handle)
if services[handle] == nil then
return
else
local result = skynet.call(handle,"debug","INFO")
return result
end
end
function command.TASK(_, handle)
handle = handle_to_address(handle)
if services[handle] == nil then
return
else
local result = skynet.call(handle,"debug","TASK")
return result
end
end
function command.KILL(_, handle)
handle = handle_to_address(handle)
skynet.kill(handle)
@@ -56,11 +36,6 @@ function command.KILL(_, handle)
return ret
end
function command.EXIT(_, handle)
handle = handle_to_address(handle)
skynet.send(handle, "debug", "EXIT")
end
function command.MEM()
local list = {}
for k,v in pairs(services) do