1
0
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:
hgjazhgj
2023-05-28 02:17:51 +08:00
parent 102ce3c71e
commit bf4caf03b1
2 changed files with 4 additions and 3 deletions

View File

@@ -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):