fix(native): reject signal-terminated command captures (#608)

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
Rudy Mizrahi Celekli
2026-10-06 02:09:41 +08:00
committed by GitHub
parent c73742f300
commit b81d18eeee
2 changed files with 30 additions and 1 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ const captureProcess = (
finish(err(new NativeCommandFailure(tool, reason, code)));
return;
}
if (code !== 0 && options.acceptNonZero !== true) {
if (signal !== null || (code !== 0 && options.acceptNonZero !== true)) {
finish(err(new NativeCommandFailure(tool, "nonzero-exit", code)));
return;
}