MCPcopy Index your code
hub / github.com/coder/mux / parsePid

Function parsePid

src/node/runtime/backgroundCommands.ts:23–26  ·  view source on GitHub ↗
(output: string)

Source from the content-addressed store, hash-verified

21 * Returns the PID or null if invalid.
22 */
23export function parsePid(output: string): number | null {
24 const pid = parseInt(output.trim(), 10);
25 return isNaN(pid) || pid <= 0 ? null : pid;
26}
27
28/**
29 * Shared command builders for background process management.

Callers 2

spawnProcessFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected