MCPcopy Create free account
hub / github.com/Noumena-Network/code / terminate

Function terminate

src/testing/ptyContractHarness.ts:299–313  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

297 proc.stdin.write(text)
298 },
299 terminate() {
300 try {
301 proc.stdin.end()
302 } catch {}
303
304 try {
305 proc.kill('SIGTERM')
306 } catch {}
307
308 setTimeout(() => {
309 try {
310 proc.kill('SIGKILL')
311 } catch {}
312 }, 250)
313 },
314 }
315}

Callers

nothing calls this directly

Calls 2

endMethod · 0.45
killMethod · 0.45

Tested by

no test coverage detected