Skip to content

Commit bd16e31

Browse files
committed
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)
1 parent cd93465 commit bd16e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/calibre/utils/ipc/launch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def windows_creationflags_for_worker_process(priority: str = 'normal') -> int:
8080
'high' : subprocess.HIGH_PRIORITY_CLASS,
8181
'normal': subprocess.NORMAL_PRIORITY_CLASS,
8282
'low' : subprocess.IDLE_PRIORITY_CLASS
83-
}[priority] | subprocess.CREATE_NO_WINDOW
83+
}[priority] | subprocess.DETACHED_PROCESS
8484

8585

8686
class Worker:

0 commit comments

Comments
 (0)