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

Method cleanup

packages/core/src/tools/grep.ts:443–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

441 };
442
443 const cleanup = () => {
444 child.stdout.removeListener('data', onData);
445 child.stderr.removeListener('data', onStderr);
446 child.removeListener('error', onError);
447 child.removeListener('close', onClose);
448 if (child.connected) {
449 child.disconnect();
450 }
451 };
452
453 child.stdout.on('data', onData);
454 child.stderr.on('data', onStderr);

Callers 2

runNonInteractiveFunction · 0.45
start_sandboxFunction · 0.45

Calls 1

disconnectMethod · 0.80

Tested by

no test coverage detected