Files
codex/codex-rs/sandboxing
Benjamin Carlsson 29091c7234 Wait for the system bwrap probe with a pidfd (#62160)
## 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
2026-11-18 02:05:25 +00:00
..