MCPcopy Create free account
hub / github.com/TanStack/cli / killTree

Function killTree

packages/cli/tests-e2e/helpers.ts:147–157  ·  view source on GitHub ↗
(signal: NodeJS.Signals)

Source from the content-addressed store, hash-verified

145 }
146
147 const killTree = (signal: NodeJS.Signals) => {
148 if (typeof child.pid === 'number') {
149 try {
150 process.kill(-child.pid, signal)
151 return
152 } catch {
153 // fall through to direct child kill
154 }
155 }
156 child.kill(signal)
157 }
158
159 killTree('SIGTERM')
160

Callers 1

stopChildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected