Skip to content

Report signal termination correctly from wavec run #650

Closed

Description

@LunaStev

Current evidence

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.
  • Successful wavec run behavior is unchanged.

Activity

  1. added
    bug
    good first issue
    needs testing
    on Sep 15, 2026
  2. self-assigned this
    on Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buggood first issueneeds testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions