Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Development · Evolving reference

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. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. 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