添加-n参数

This commit is contained in:
aozhiwei 2019-06-03 14:31:54 +08:00
parent 131eff7f83
commit 14f81a4ddf
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ def stop(instance_id, node_id):
for pid in pids:
exepath = getExePath(pid)
cmdline = getExeCmdLine(pid)
if cmdline == ("./gameserver\0-i\0%d\0-i\0%d\0" % (instance_id, node_id)):
if cmdline == ("./gameserver\0-i\0%d\0-n\0%d\0" % (instance_id, node_id)):
os.popen('kill -9 %d' % int(pid))
def listServer():

View File

@ -34,7 +34,7 @@ def stop(instance_id, node_id):
for pid in pids:
exepath = getExePath(pid)
cmdline = getExeCmdLine(pid)
if cmdline == ("./masterserver\0-i\0%d\0-i\0%d\0" % (instance_id, node_id)):
if cmdline == ("./masterserver\0-i\0%d\0-n\0%d\0" % (instance_id, node_id)):
os.popen('kill -9 %d' % int(pid))
def listServer():