Skip to content

ProcessSignalHandlingMode

Controls whether standalone runs translate process termination signals into cooperative cancellation.

public enum ProcessSignalHandlingMode

Standalone runs handle Ctrl+C console events, plus Ctrl+Break on Windows, for their duration. They also handle SIGTERM on supported Unix platforms. The first such signal cancels the handler’s token so cleanup can run, and the run then reports 130 for Ctrl+C or Ctrl+Break and 143 for SIGTERM, unless the handler returned a non-zero exit code of its own, which wins. A second signal is left to the operating system. Interactive sessions are unaffected: inside an interactive command, Ctrl+C keeps cancelling only that command.

Automatic = 1

ProcessSignalHandlingMode

Process signal handling remains the responsibility of the caller. This is the zero value so that an unset configuration field or a zero-initialized value agrees with the caller-owned application default instead of silently claiming process-wide signal ownership.

None = 0

ProcessSignalHandlingMode