Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix child processes.

  • Loading branch information...
commit 1ed8237bf1e1f114fe3b0c73eb6717f1821beb42 1 parent 2e87b5c
@chjj authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  bin/charged
View
3  bin/charged
@@ -394,6 +394,8 @@ shell.spawn = function(path, name, args, callback) {
fs.writeFile(tmp, results, function(err) {
if (err) return callback(err);
+ process.stdin.pause();
+
var ps = spawn(name, args.concat(tmp), {
cwd: process.cwd(),
env: process.env,
@@ -402,6 +404,7 @@ shell.spawn = function(path, name, args, callback) {
});
ps.on('exit', function() {
+ process.stdin.resume();
fs.unlink(tmp, function() {
return callback();
});
Please sign in to comment.
Something went wrong with that request. Please try again.