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);
6262// Ctrl+C
6363process . on ( "SIGINT" , exitProcess ) ;
6464// 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+ }
6974
7075const process_argv = process . argv ;
7176const maybeSubcommand = process_argv [ 2 ] ;
You can’t perform that action at this time.
0 commit comments