Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
0.2.0 Preview 1 · Frozen documentation

ProcessExit

Owns detached normal or abnormal direct-child terminal observation. Nonzero Code is an ordinary successful outcome. NativeReason identifies target termination without synthesizing shell-style128 offsets. No storage or child lifetime remains. Immutable observations require no synchronization.

Sn is under heavy development. Reference extracted from this release’s bundled standard library. Public API examples are not an exhaustive compatibility test. Read the matching release guide for tested workflows and limitations. Read the status →

Module std.process

import std.process;

Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.

ProcessExit

pub enum ProcessExit

Owns detached normal or abnormal direct-child terminal observation. Nonzero Code is an ordinary successful outcome. NativeReason identifies target termination without synthesizing shell-style128 offsets. No storage or child lifetime remains. Immutable observations require no synchronization.

ProcessExit.Exited

Exited;

Normal completion with exact platform unsigned exit code.

ProcessExit.Exited.Code

Code: u32;

ProcessExit.Terminated

Terminated;

Native abnormal termination reason, not a portable signal enum.

ProcessExit.Terminated.NativeReason

NativeReason: u32;
Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library