mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 09:48:20 +08:00
Opt: kill OrphanSlayer when sub-subprocess exited
which there is no need of it any more
This commit is contained in:
@@ -31,13 +31,13 @@ class HeadlessCliApplication:
|
||||
def callback(self, line):
|
||||
print(line)
|
||||
|
||||
def reg_halt(self, pid, halt):
|
||||
def start_orphan_slayer(self, pid, cmd):
|
||||
self.orphan_slayer = Popen([
|
||||
"python",
|
||||
os.path.join(os.path.dirname(__file__), "orphanSlayer.py"),
|
||||
str(os.getpid()),
|
||||
pid,
|
||||
halt,
|
||||
cmd,
|
||||
])
|
||||
|
||||
def feed(self, cmd):
|
||||
|
||||
Reference in New Issue
Block a user