mirror of
https://github.com/vercel-labs/portless.git
synced 2026-09-14 16:37:59 +08:00
8252927d7e
Spawn child processes with detached:true on Unix so they get their own process group. Signal handlers now kill the entire group via process.kill(-pid) instead of just the immediate child, preventing orphaned dev servers from surviving CLI crashes or kill -9. Add `portless prune` command as a safety net to find and kill orphaned dev servers left behind by dead CLI sessions. It reads stale route entries, checks if something is still listening on each port, and terminates the orphan. Add e2e tests covering both the SIGKILL cleanup path and the prune command.