MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / shutdown

Function shutdown

packages/cli/src/commands/preview.ts:705–707  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

703
704function registerChildTreeShutdown(child: StudioChildProcess): void {
705 const shutdown = (): void => {
706 if (child.pid) killProcessTree(child.pid);
707 };
708 process.once("SIGINT", shutdown);
709 process.once("SIGTERM", shutdown);
710}

Callers

nothing calls this directly

Calls 3

killProcessTreeFunction · 0.85
cleanupFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected