1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 06:18:21 +08:00
This commit is contained in:
GH Action - Upstream Sync
2025-02-11 18:26:27 +00:00
7 changed files with 5 additions and 4 deletions

View File

@@ -54,7 +54,9 @@ class PlatformWindows(PlatformBase, EmulatorManager):
"""
command = command.replace(r"\\", "/").replace("\\", "/").replace('"', '"')
logger.info(f'Execute: {command}')
return subprocess.Popen(command, close_fds=True) # only work on Windows
# `close_fds` only work on Windows
# `start_new_session` to avoid emulator getting tree-killed when Alas gets killed
return subprocess.Popen(command, close_fds=True, start_new_session=True)
@classmethod
def kill_process_by_regex(cls, regex: str) -> int: