MCPcopy Create free account
hub / github.com/TanStack/ai / killProcess

Function killProcess

examples/ts-react-native-chat/scripts/dev.mjs:273–285  ·  view source on GitHub ↗
(child)

Source from the content-addressed store, hash-verified

271}
272
273function killProcess(child) {
274 if (child.exitCode !== null || child.signalCode !== null) return
275 if (!child.pid) return
276
277 if (process.platform === 'win32') {
278 spawn('taskkill', ['/pid', String(child.pid), '/t', '/f'], {
279 stdio: 'ignore',
280 })
281 return
282 }
283
284 child.kill('SIGTERM')
285}
286
287function startDev() {
288 loadEnvFileIntoEnv()

Callers 1

shutdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected