mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
## Why The system `bwrap` user namespace probe checks for child exit at fixed intervals. A pidfd signals exit as soon as the child terminates, even when a descendant still holds its stderr pipe open. ## What changed Poll the probe child's pidfd for the time remaining before the deadline. Keep the bounded `try_wait` loop to collect the exit status and handle systems where `pidfd_open` fails. GitOrigin-RevId: f69f10aa49404a7760c33bbcbfde456513ebdaa0