From bd16e3120bc3af25e973ce92f53939e6e9ea6502 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 24 May 2025 13:18:59 +0530 Subject: [PATCH] Windows: Prevent Windows 11 from starting a conhost.exe process for ever calibre worker process Apparently on modern windows we need DETACHED_PROCESS not CREATE_NO_WINDOW. Sigh. See #2111559 (Fetching news, wrong path for conhost.exe) --- src/calibre/utils/ipc/launch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/utils/ipc/launch.py b/src/calibre/utils/ipc/launch.py index b590c81931..df73c4da48 100644 --- a/src/calibre/utils/ipc/launch.py +++ b/src/calibre/utils/ipc/launch.py @@ -80,7 +80,7 @@ def windows_creationflags_for_worker_process(priority: str = 'normal') -> int: 'high' : subprocess.HIGH_PRIORITY_CLASS, 'normal': subprocess.NORMAL_PRIORITY_CLASS, 'low' : subprocess.IDLE_PRIORITY_CLASS - }[priority] | subprocess.CREATE_NO_WINDOW + }[priority] | subprocess.DETACHED_PROCESS class Worker: