From 60a133f36c0145d83083690e435f54a1ad0cff95 Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Fri, 11 Sep 2015 12:39:33 -0400 Subject: [PATCH] Multiple SIGINT signals sent to node process while in shutdown cycle. - Overrode the sigint listener if in the shutdown cycle. This prevents control being returned to the pty before the node process is fully halted. --- lib/scaffold/start.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/scaffold/start.js b/lib/scaffold/start.js index e4528324..0bedf0ab 100644 --- a/lib/scaffold/start.js +++ b/lib/scaffold/start.js @@ -153,6 +153,7 @@ function registerExitHandlers(_process, node) { }); } if (options.sigint) { + _process.on('SIGINT', function(){}); cleanShutdown(_process, node); } }