We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d357c4 commit 32c1c23Copy full SHA for 32c1c23
src/main.ts
@@ -51,7 +51,13 @@ async function collie() {
51
// "long running" work is done by subprocesses anyway, there's nothing we need to do here but notifying the user
52
// that we wait for subprocesses to exit and then exiting ourselves.
53
Deno.addSignalListener("SIGINT", () => gracefulShutdown());
54
- Deno.addSignalListener("SIGTERM", () => gracefulShutdown());
+
55
+ // not on windows
56
+ if (isWindows) {
57
+ Deno.addSignalListener("SIGBREAK", () => gracefulShutdown());
58
+ } else {
59
+ Deno.addSignalListener("SIGTERM", () => gracefulShutdown());
60
+ }
61
62
// Run the main program with error handling.
63
try {
0 commit comments