mirror of
https://github.com/openai/codex.git
synced 2026-10-21 05:22:21 +00:00
## What changed Add a crate-private `ChildDropPolicy` to choose whether dropping a child kills it or only reaps it after exit. Keep `KillAndReap` as the default. For `ReapOnly` on Unix, transfer dropped children to a shared reaper thread that operates independently of the Tokio runtime. Support both Tokio children and native macOS children, without blocking drop or letting a live child delay reaping others. ## Testing Add an isolated regression test verifying that reap-only children survive handle drop after runtime shutdown, are reaped after exit, and do not prevent other exited children from being reaped. GitOrigin-RevId: 5ec639597dba7f3b61694d6d465991e054ae3397