MCPcopy Create free account
hub / github.com/anus-dev/ANUS / abortHandler

Function abortHandler

packages/cli/src/ui/hooks/shellCommandProcessor.ts:128–132  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126 let executionPid: number | undefined;
127
128 const abortHandler = () => {
129 onDebugMessage(
130 `Aborting shell command (PID: ${executionPid ?? 'unknown'})`,
131 );
132 };
133 abortSignal.addEventListener('abort', abortHandler, { once: true });
134
135 onDebugMessage(`Executing in ${targetDir}: ${commandToExecute}`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected