Skip to content

Commit

Permalink
chore: stdio: pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Jun 7, 2017
1 parent 46b25f1 commit 182462e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
flow-typed
lib/*
4 changes: 2 additions & 2 deletions src/util/MongoInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class MongodbInstance {

launchMongod(mongoBin: string): ChildProcess {
const spawnOpts = this.opts.spawn || {};
if (!spawnOpts.stdio) spawnOpts.stdio = 'ignore';
if (!spawnOpts.stdio) spawnOpts.stdio = 'pipe';
const childProcess = spawnChild(mongoBin, this.prepareCommandArgs(), spawnOpts);
childProcess.stderr.on('data', this.stderrHandler.bind(this));
childProcess.stdout.on('data', this.stdoutHandler.bind(this));
Expand All @@ -108,7 +108,7 @@ export default class MongodbInstance {
const killer = spawnChild(
process.argv[0],
[path.resolve(__dirname, 'mongo_killer.js'), parentPid.toString(), childPid.toString()],
{ stdio: 'ignore' }
{ stdio: 'pipe' }
);

return killer;
Expand Down

0 comments on commit 182462e

Please sign in to comment.