From ea18ed2b754ca7f11998cad70d88e9004c5bef4a Mon Sep 17 00:00:00 2001 From: Matthew Shin Date: Tue, 7 May 2019 11:49:58 -0500 Subject: [PATCH] fix: remove procInterrupt listener on SIGINT in procError PR-URL: https://github.com/npm/npm-lifecycle/pull/36 Close: #36 Reviewed-by: @isaacs Credit: @mattshin Fix: #11 Fix: #18 --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 4a66459..4287648 100644 --- a/index.js +++ b/index.js @@ -333,6 +333,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) { process.removeListener('SIGTERM', procKill) process.removeListener('SIGTERM', procInterupt) process.removeListener('SIGINT', procKill) + process.removeListener('SIGINT', procInterupt) return cb(er) } function procKill () {