[Pkg-javascript-commits] [node-foreground-child] 61/69: Fix 'childHangup is undefined'
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 11:43:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-foreground-child.
commit 28ba7493cb91753238df100b4cd0f2abe037b944
Author: isaacs <i at izs.me>
Date: Thu Dec 15 23:05:21 2016 -0800
Fix 'childHangup is undefined'
Not sure how that got through, tbh. Looks like merge commit scar
tissue.
---
index.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/index.js b/index.js
index 837793d..32ae9ff 100644
--- a/index.js
+++ b/index.js
@@ -41,6 +41,9 @@ module.exports = function (program, args, cb) {
var childExited = false
var unproxySignals = proxySignals(child)
process.on('exit', childHangup)
+ function childHangup () {
+ child.kill('SIGHUP')
+ }
child.on('close', function (code, signal) {
// Allow the callback to inspect the child’s exit code and/or modify it.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-foreground-child.git
More information about the Pkg-javascript-commits
mailing list