File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,15 @@ process.on("uncaughtException", onUncaughtException);
62
62
// Ctrl+C
63
63
process . on ( "SIGINT" , exitProcess ) ;
64
64
// kill pid
65
- process . on ( "SIGUSR1" , exitProcess ) ;
66
- process . on ( "SIGUSR2" , exitProcess ) ;
67
- process . on ( "SIGTERM" , exitProcess ) ;
68
- process . on ( "SIGHUP" , exitProcess ) ;
65
+ try {
66
+ process . on ( "SIGUSR1" , exitProcess ) ;
67
+ process . on ( "SIGUSR2" , exitProcess ) ;
68
+ 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
+ }
69
74
70
75
const process_argv = process . argv ;
71
76
const maybeSubcommand = process_argv [ 2 ] ;
You can’t perform that action at this time.
0 commit comments