[Pkg-javascript-commits] [node-foreground-child] 42/69: Use fd numbers instead of 'inherit' for Node v0.10 compatibility

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 11:43:05 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 a494c285ecd6555efec54844b2047a210598ebc5
Author: Anna Henningsen <anna at addaleax.net>
Date:   Mon Jun 13 22:02:51 2016 +0200

    Use fd numbers instead of 'inherit' for Node v0.10 compatibility
    
    Use 0, 1, 2 for specifiying child process stdio instead of 'inherit',
    since Node v0.10 does not support the latter.
    
    Example failure: https://github.com/bcoe/nyc/issues/275
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index cd52017..04ae8af 100644
--- a/index.js
+++ b/index.js
@@ -60,7 +60,7 @@ module.exports = function (program, args, cb) {
     args = [].slice.call(arguments, 1, arrayIndex)
   }
 
-  var spawnOpts = { stdio: ['inherit', 'inherit', 'inherit'] }
+  var spawnOpts = { stdio: [0, 1, 2] }
 
   if (process.send) {
     spawnOpts.stdio.push('ipc')

-- 
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