diff --git a/python/mach/mach/mixin/process.py b/python/mach/mach/mixin/process.py index 535a469b5943..cd4cb53f6db0 100644 --- a/python/mach/mach/mixin/process.py +++ b/python/mach/mach/mixin/process.py @@ -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