INNER CODE UNIT · TypeScript

exitCleanlyOnSigterm

superagent-ai/grok-cli · src/index.ts:43

const exitCleanlyOnSigterm = () => {
  process.exit(0);
};

process.on("SIGTERM", exitCleanlyOnSigterm);

process.on("uncaughtException", (err) => {
  console.error("Fatal:", err.message);
  process.exit(1);
});

process.on("unhandledRejection", (reason) => {
  console.error("Unhandled rejection:", reason);
  process.exit(1);
});

async function startInteractive(
  apiKey: string | undefined,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…