mirror of
https://github.com/morluto/rea
synced 2026-10-26 06:16:17 -04:00
4cfc61147b
capture-process recorded exit.code 0 for a target a scenario event killed with SIGKILL or SIGTERM, beside the nonzero exit.signal. The result builder and the retained observation each kept any nonnegative PTY exit code for an exited capture without consulting the signal; only finalization checked it. Project the exit once in captureExitObservation, whose normal exit code is null when a nonzero signal ended the target, and use the same rule for finalization. Normal exits keep their codes, including 0 and 3, and deadline exits remain null. Fixes #6445