Skip to content

fix: preserve signal exit status in fnm exec - #1596

Open
pederbe wants to merge 1 commit into
Schniz:masterfrom
pederbe:learn/649-exec-signal-status
Open

pederbe wants to merge 1 commit into
Schniz:masterfrom
pederbe:learn/649-exec-signal-status

Conversation

@pederbe

@pederbe pederbe commented Sep 16, 2026

Copy link
Copy Markdown

When a child is terminated by a signal on Unix, fnm exec currently reports that it cannot read the exit code and exits with 1. Return 128 + signal instead, so callers can distinguish signal termination from ordinary exit code 1.

Adds shell-based regression coverage for signal termination, ordinary exit codes, and spawn failures.

Fixes #649.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fnm exec: distinguish between exitCode 1 and killed-by-signal?

1 participant