MCPcopy Create free account
hub / github.com/BuilderIO/framework-benchmarks / killProcess

Function killProcess

src/helpers/kill-process.ts:7–9  ·  view source on GitHub ↗
(port: number)

Source from the content-addressed store, hash-verified

5 * Kill process by port
6 */
7export async function killProcess(port: number) {
8 return $`lsof -t -i tcp:${port} | xargs kill`.catch(() => null);
9}
10
11/**
12 * Loop over all frameworks, find their port, and kill their

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected