INNER CODE UNIT · TypeScript
scheduleForcedExit
openclaw/mcporter · src/cli.ts:406
const scheduleForcedExit = () => {
if (shouldForceExit) {
setTimeout(flushStdioThenForceExit, FORCE_EXIT_GRACE_MS);
}
};
if (DEBUG_HANG) {
dumpActiveHandles('after terminateChildProcesses');
scheduleForcedExit();
} else {
setImmediate(scheduleForcedExit);
}
}
if (closeError) {
throw closeError;
}
}
function wrapperArgsBeforeSeparator(args: readonly string[]): string[] {