Skip to main content

SHUTDOWN_EXIT_CODE

Constant SHUTDOWN_EXIT_CODE 

Source
pub const SHUTDOWN_EXIT_CODE: i32 = 19;
Expand description

Process exit code returned when shutdown is requested via SIGINT/SIGTERM/SIGHUP (v1.0.82, GAP-002 final).

The shell sees this code INSTEAD of the legacy 128 + signal (130/143/129) so that LLM agents and orchestrators can branch on a single deterministic value when the operation was cancelled by the user. The signal name is preserved in the JSON envelope emitted before exit ({"code":19,"signal":"SIGINT",...}).