From d549d78f8384a01a80078eb95ed533d3689721cd Mon Sep 17 00:00:00 2001 From: khai96_ Date: Wed, 15 May 2024 16:00:40 +0700 Subject: [PATCH] refactor: fix a typo --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 931c917..2ef255d 100644 --- a/index.js +++ b/index.js @@ -295,7 +295,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) { opts.log.verbose('lifecycle', logid(pkg, stage), 'stderr', data.toString()) }) process.once('SIGTERM', procKill) - process.once('SIGINT', procInterupt) + process.once('SIGINT', procInterrupt) process.on('exit', procKill) function procError (er) { @@ -316,7 +316,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) { er.pkgname = pkg.name } process.removeListener('SIGTERM', procKill) - process.removeListener('SIGTERM', procInterupt) + process.removeListener('SIGTERM', procInterrupt) process.removeListener('SIGINT', procKill) return cb(er) } @@ -326,7 +326,7 @@ function runCmd_ (cmd, pkg, env, wd, opts, stage, unsafe, uid, gid, cb_) { called = true proc.kill() } - function procInterupt () { + function procInterrupt () { proc.kill('SIGINT') proc.on('exit', () => { process.exit()