mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 05:02:40 +00:00
fix(tests): treat zombies as stopped in process liveness checks Fixes #11819. Killed descendants waiting to be reaped read as alive to process.kill(pid, 0), so three boundary tests fail in containers whose PID 1 does not reap orphans. The liveness checks now treat a zombie as stopped, using the existing observePosixProcess helper (ps -o stat=, comm-safe) with two small wrappers, processHasStopped / processGroupHasStopped, swapped in at the three call sites. Test-only change; production code untouched. Co-authored-by: morluto <76467478+morluto@users.noreply.github.com>