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