core-agent-ide/codex-rs/rmcp-client
Eric Traut 82c981cafc
Process-group cleanup for stdio MCP servers to prevent orphan process storms (#10710)
This PR changes stdio MCP child processes to run in their own process
group
* Add guarded teardown in codex-rmcp-client: send SIGTERM to the group
first, then SIGKILL after a short grace period.
* Add terminate_process_group helper in process_group.rs.
* Add Unix regression test in process_group_cleanup.rs to verify wrapper
+ grandchild are reaped on client drop.

Addresses reported MCP process/thread storm: #10581
2026-02-06 21:26:36 -08:00
..
src Process-group cleanup for stdio MCP servers to prevent orphan process storms (#10710) 2026-02-06 21:26:36 -08:00
tests Process-group cleanup for stdio MCP servers to prevent orphan process storms (#10710) 2026-02-06 21:26:36 -08:00
BUILD.bazel feat: add support for building with Bazel (#8875) 2026-01-09 11:09:43 -08:00
Cargo.toml Process-group cleanup for stdio MCP servers to prevent orphan process storms (#10710) 2026-02-06 21:26:36 -08:00