ANTIGRAVITY LABJP
TAG

teardown

1 articles
Back to all tags
Related:
mcp1process1sigterm1setsid1measurement1
Integrations/2026-08-08Advanced

The MCP Server I Thought I Killed Was Still Holding the Port: 84 Teardown Trials

Closing a session should stop the MCP servers it started. Across 84 trials of four teardown strategies, a process-group SIGTERM left zero orphans — until the child called setsid, at which point it left 100%. Includes a full descendant-sweep implementation.