MCPcopy Create free account
hub / github.com/vercel/vercel / checkForPid

Function checkForPid

packages/node/src/fork-dev-server.ts:119–126  ·  view source on GitHub ↗
(
  path: string,
  process: ChildProcess
)

Source from the content-addressed store, hash-verified

117}
118
119function checkForPid(
120 path: string,
121 process: ChildProcess
122): asserts process is ChildProcess & { pid: number } {
123 if (!process.pid) {
124 throw new Error(`Child Process has no "pid" when forking: "${path}"`);
125 }
126}
127
128/**
129 * When launching a dev-server, we want to know its state.

Callers 1

forkDevServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected