Bug 1920039 - Do not set SIGKILL signal on Windows since it's not available r=firefox-build-system-reviewers,sergesanspaille

Differential Revision: https://phabricator.services.mozilla.com/D223643
This commit is contained in:
ahochheiden
2024-10-07 16:35:58 +00:00
parent 6f57fd5fb8
commit 8b83bc6d8e

View File

@@ -180,8 +180,9 @@ class ProcessExecutionMixin(LoggingMixin):
if sig is None:
sig = signal.SIGINT
elif sig == signal.SIGINT:
# If we've already tried SIGINT, escalate.
sig = signal.SIGKILL
# If we've already tried SIGINT, escalate (if possible).
# Note: SIGKILL is not available on Windows.
getattr(signal, "SIGKILL", sig)
if ensure_exit_code is False:
return status