add debug command: exit

This commit is contained in:
Cloud Wu
2014-08-13 19:37:26 +08:00
parent 845acd3314
commit 809e6c3a89
4 changed files with 13 additions and 1 deletions

View File

@@ -56,6 +56,11 @@ 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