deno_task_shell icon indicating copy to clipboard operation
deno_task_shell copied to clipboard

fix: preserve signal-based exit codes (128 + signal_number)

Open wolfv opened this issue 1 month ago • 0 comments

When a child process is terminated by a signal, return the POSIX-standard exit code (128 + signal_number) instead of falling back to 1.

This fixes incorrect exit codes when processes receive signals like SIGPIPE, SIGTERM, or SIGINT (e.g., yes | head -n 1 now correctly reports 141 for the SIGPIPE-terminated yes process).

Ref: https://github.com/prefix-dev/pixi/issues/5016

wolfv avatar Dec 01 '25 16:12 wolfv