From 21ca50865bcb20528b09d87587684c40eed5a004 Mon Sep 17 00:00:00 2001 From: Nicolas Martinez <17040442+nicomt@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:17:48 -0400 Subject: [PATCH] Fix for CRTL + C not working in docker --- bin/cli.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/cli.js b/bin/cli.js index fbad4f4..afa41de 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -23,6 +23,12 @@ program program.parse(process.argv); +process.on('SIGINT', () => { + console.info('Interrupted'); + process.exit(0); +}); + +