Skip to content

Commit

Permalink
Screwup fix
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhidey committed Dec 21, 2014
1 parent 775ce57 commit 14e0efc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions node/hdyShellDomain.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@
cmd = shell;
}

child = spawn(cmd, args, { cwd: cwd, env: process.env, stdio: 'inherit' });
child = spawn(cmd, args, { cwd: cwd, env: process.env });

process.stdout.on("data", function (data) {
child.stdout.on("data", function (data) {
_domainManager.emitEvent("hdyShellDomain", "stdout", [data.toString()]);
});

process.stderr.on("data", function (data) {
child.stderr.on("data", function (data) {
_domainManager.emitEvent("hdyShellDomain", "stderr", [data.toString()]);
});

process.on("close", function () {
child.on("close", function () {
child.kill();
_domainManager.emitEvent("hdyShellDomain", "close", [enddir]);
});
Expand Down

0 comments on commit 14e0efc

Please sign in to comment.