Bound forced external-core shutdown

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2026-08-19 08:44:31 +08:00
parent 85de3e010a
commit 0ee5eccb32
+4 -1
View File
@@ -42,7 +42,7 @@ class ExternalCoreProcess(RuntimeKernel):
"""Manage one direct external process and its output-reader threads."""
StartupObservationTimeout = 0.25
ForcedShutdownTimeout = 3.0
ForcedShutdownTimeout = 5.0
MaximumPendingOutput = 65536
def __init__(self, *, exitCallback=None, msgCallback=None):
@@ -385,7 +385,10 @@ class ExternalCoreProcess(RuntimeKernel):
stderr=subprocess.DEVNULL,
check=False,
shell=False,
timeout=ExternalCoreProcess.ForcedShutdownTimeout,
)
except subprocess.TimeoutExpired:
logger.warning('Windows process-tree shutdown command timed out')
except OSError as ex:
logger.warning(f'could not invoke Windows process-tree shutdown: {ex}')