This commit is contained in:
2024-01-21 16:25:46 +08:00
parent b91bf5928e
commit 6e73fcceed

View File

@@ -25,6 +25,7 @@ export function add_exit_handler(m: TaskManager) {
Deno.addSignalListener("SIGINT", handler);
if (Deno.build.os !== "windows") {
Deno.addSignalListener("SIGTERM", () => {
m.abort();
m.force_abort();
ExitTarget.dispatchEvent(new Event("close"));
m.close();