We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93e16f6 commit bbada2dCopy full SHA for bbada2d
rescript
@@ -62,10 +62,15 @@ process.on("uncaughtException", onUncaughtException);
62
// Ctrl+C
63
process.on("SIGINT", exitProcess);
64
// kill pid
65
-process.on("SIGUSR1", exitProcess);
66
-process.on("SIGUSR2", exitProcess);
67
-process.on("SIGTERM", exitProcess);
68
-process.on("SIGHUP", exitProcess);
+try {
+ process.on("SIGUSR1", exitProcess);
+ process.on("SIGUSR2", exitProcess);
+ process.on("SIGTERM", exitProcess);
69
+ process.on("SIGHUP", exitProcess);
70
+} catch (_e) {
71
+ // Deno might throw an error here, see https://github.com/denoland/deno/issues/9995
72
+ // TypeError: Windows only supports ctrl-c (SIGINT) and ctrl-break (SIGBREAK).
73
+}
74
75
const process_argv = process.argv;
76
const maybeSubcommand = process_argv[2];
0 commit comments