You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Report signal termination correctly from wavec run #650
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
After wavec run launches the produced program, src/cli.rs exits with status.code().unwrap_or(1) when the child is unsuccessful. On Unix, ExitStatus::code() is None when a process is terminated by a signal, so every signal termination is collapsed to exit status 1.
That loses the distinction between an ordinary program exit and termination such as SIGABRT or SIGSEGV.
Scope
Detect signal termination on Unix instead of treating it as an unspecified exit code.
Propagate it using a documented shell-compatible status convention, such as 128 + signal.
Preserve ordinary child exit codes unchanged.
Keep non-Unix behavior unchanged unless the platform exposes an equivalent termination status through the existing API.
Completion criteria
Tests cover a normal nonzero child exit and at least one Unix signal termination.
A signal-terminated program no longer appears as ordinary exit status 1.
bugA problem that causes incorrect behavior or crashes.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity