hundreds-breakfast-49010
09/22/2020, 7:15 PMwith
block where the presence/absence of the with
is controllable via a flag?hundreds-breakfast-49010
09/22/2020, 7:15 PMdef run(self, request: InteractiveProcess) -> InteractiveProcessResult:
if request.capture_signals:
with ExceptionSink.ignoring_sigint():
return self._scheduler.run_local_interactive_process(request)
else:
return self._scheduler.run_local_interactive_process(request)
hundreds-father-404
09/22/2020, 7:17 PMwith maybe_ignore_sigint(toggle):
https://github.com/pantsbuild/pants/blob/9d6ef6c7dffc7c685715081b79cb434f721dff9f/build-support/bin/ci.py#L192-L212witty-crayon-22786
09/22/2020, 7:44 PMwitty-crayon-22786
09/22/2020, 7:45 PMwitty-crayon-22786
09/22/2020, 7:46 PM