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 @@ -61,10 +61,15 @@ process.on("uncaughtException", onUncaughtException);
61
61
// Ctrl+C
62
62
process . on ( "SIGINT" , exitProcess ) ;
63
63
// kill pid
64
- process . on ( "SIGUSR1" , exitProcess ) ;
65
- process . on ( "SIGUSR2" , exitProcess ) ;
66
- process . on ( "SIGTERM" , exitProcess ) ;
67
- process . on ( "SIGHUP" , exitProcess ) ;
64
+ try {
65
+ process . on ( "SIGUSR1" , exitProcess ) ;
66
+ process . on ( "SIGUSR2" , exitProcess ) ;
67
+ 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
+ }
68
73
69
74
const args = process . argv . slice ( 2 ) ;
70
75
const argPatterns = {
You can’t perform that action at this time.
0 commit comments