MCPcopy Create free account
hub / github.com/cli/cli / interrupt

Function interrupt

evals/src/smoke.ts:84–87  ·  view source on GitHub ↗
(signal: string)

Source from the content-addressed store, hash-verified

82 let completed: Awaited<ReturnType<typeof runSmokeProtocol>> | undefined;
83 let interrupted: Error | undefined;
84 const interrupt = (signal: string) => {
85 interrupted ??= new Error(`Smoke interrupted by ${signal}`);
86 if (stream && stream.exitCode === null && stream.signalCode === null) stream.kill("SIGTERM");
87 };
88 const onInterrupt = () => interrupt("SIGINT");
89 const onTerminate = () => interrupt("SIGTERM");
90 process.once("SIGINT", onInterrupt);

Callers 2

onInterruptFunction · 0.85
onTerminateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected