mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-02 20:07:59 +03:00
Bound forced external-core shutdown
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -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}')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user