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:
@@ -180,8 +180,9 @@ class ProcessExecutionMixin(LoggingMixin):
|
|||||||
if sig is None:
|
if sig is None:
|
||||||
sig = signal.SIGINT
|
sig = signal.SIGINT
|
||||||
elif sig == signal.SIGINT:
|
elif sig == signal.SIGINT:
|
||||||
# If we've already tried SIGINT, escalate.
|
# If we've already tried SIGINT, escalate (if possible).
|
||||||
sig = signal.SIGKILL
|
# Note: SIGKILL is not available on Windows.
|
||||||
|
getattr(signal, "SIGKILL", sig)
|
||||||
|
|
||||||
if ensure_exit_code is False:
|
if ensure_exit_code is False:
|
||||||
return status
|
return status
|
||||||
|
|||||||
Reference in New Issue
Block a user