fixes shutdown handler fuckup

This commit is contained in:
nai-degen 2024-05-26 15:36:54 -05:00
parent a59b6555e7
commit 155e185c6e
1 changed files with 1 additions and 4 deletions

View File

@ -179,10 +179,7 @@ function cleanup() {
process.exit(0);
}
process.on("exit", () => cleanup());
process.on("SIGHUP", () => process.exit(128 + 1));
process.on("SIGINT", () => process.exit(128 + 2));
process.on("SIGTERM", () => process.exit(128 + 15));
process.on("SIGINT", cleanup);
function registerUncaughtExceptionHandler() {
process.on("uncaughtException", (err: any) => {