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
Родитель 2b362c4eed
Коммит c9e529ace1
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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