MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / killChild

Function killChild

apps/local/src/db/data-dir-ownership.test.ts:152–157  ·  view source on GitHub ↗
(output: ChildOutput)

Source from the content-addressed store, hash-verified

150};
151
152const killChild = async (output: ChildOutput): Promise<ChildCloseResult> => {
153 if (output.child.exitCode === null && output.child.signalCode === null) {
154 output.child.kill("SIGKILL");
155 }
156 return waitForChildClose(output, 5_000);
157};
158
159const disposeChildOutput = (output: ChildOutput): void => {
160 output.child.stdout.destroy();

Callers 1

Calls 1

waitForChildCloseFunction · 0.70

Tested by

no test coverage detected