diff --git a/src/bin/server.ts b/src/bin/server.ts index 0fc8153c9..6fcead53e 100644 --- a/src/bin/server.ts +++ b/src/bin/server.ts @@ -196,8 +196,8 @@ interface Args { process.exit(exitCode); }; - process.on("SIGINT", handleShutdown); - process.on("SIGTERM", handleShutdown); + process.on("SIGINT", () => handleShutdown(0)); + process.on("SIGTERM", () => handleShutdown(0)); })().catch((err) => { console.error("Unable to start driver", err); process.exit(1);