зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
2b362c4eed
Коммит
c9e529ace1
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче