MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / close

Function close

tests/e2e/helpers/app-launcher.js:259–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

257 proc,
258 port,
259 async close() {
260 console.log(`[AppLauncher] 关闭应用 (PID: ${proc.pid})`)
261
262 if (proc.exitCode !== null || proc.signalCode !== null) {
263 console.log(`[AppLauncher] 应用已退出 (exit code: ${proc.exitCode}, signal: ${proc.signalCode})`)
264 return
265 }
266
267 await terminateProcess(proc, { forceKillTimeoutMs })
268 },
269 }
270}
271

Callers

nothing calls this directly

Calls 1

terminateProcessFunction · 0.85

Tested by

no test coverage detected