mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
add debug command: exit
This commit is contained in:
@@ -106,6 +106,7 @@ function COMMAND.help()
|
||||
list = "List all the service",
|
||||
stat = "Dump all stats",
|
||||
info = "Info address : get service infomation",
|
||||
exit = "exit address : kill a lua service",
|
||||
kill = "kill address : kill service",
|
||||
mem = "mem : show memory status",
|
||||
gc = "gc : force every lua service do garbage collect",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user