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

Function registerChildTreeShutdown

packages/cli/src/commands/preview.ts:704–710  ·  view source on GitHub ↗
(child: StudioChildProcess)

Source from the content-addressed store, hash-verified

702}
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}
711
712function waitForChildClose(child: StudioChildProcess): Promise<void> {
713 return new Promise<void>((resolveClose) => {

Callers 2

runDevModeFunction · 0.85
runLocalStudioModeFunction · 0.85

Calls 1

onceMethod · 0.80

Tested by

no test coverage detected