mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
## Why Unreaped zombies still pass `kill(pid, 0)` and retain their start time, so exited app-server and updater processes can appear active. ## What changed Read process state alongside start time with `ps` and treat zombies as inactive. When the start time matches the PID record, attempt to reap the process with nonblocking `waitpid`. ## Testing Add a Unix regression test verifying that an exited, unreaped updater is reported inactive and reaped. GitOrigin-RevId: 55f1cd26dbb31b5835bea76591023817f1bc10b5