mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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)
This commit is contained in:
parent
cd93465871
commit
bd16e3120b
@ -80,7 +80,7 @@ def windows_creationflags_for_worker_process(priority: str = 'normal') -> int:
|
|||||||
'high' : subprocess.HIGH_PRIORITY_CLASS,
|
'high' : subprocess.HIGH_PRIORITY_CLASS,
|
||||||
'normal': subprocess.NORMAL_PRIORITY_CLASS,
|
'normal': subprocess.NORMAL_PRIORITY_CLASS,
|
||||||
'low' : subprocess.IDLE_PRIORITY_CLASS
|
'low' : subprocess.IDLE_PRIORITY_CLASS
|
||||||
}[priority] | subprocess.CREATE_NO_WINDOW
|
}[priority] | subprocess.DETACHED_PROCESS
|
||||||
|
|
||||||
|
|
||||||
class Worker:
|
class Worker:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user