We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7589912 commit 5a71145Copy full SHA for 5a71145
.gitignore
@@ -3,3 +3,4 @@ node_modules
3
dist
4
*.log
5
*.swp
6
+.idea/
index.js
@@ -42,7 +42,7 @@ function start_server(opts, callback) {
42
}
43
44
if (opts.args.fork === undefined) {
45
- opts.args.fork = true;
+ opts.args.fork = false;
46
47
48
if (!opts.args.logpath) {
@@ -68,7 +68,8 @@ function start_server(opts, callback) {
68
69
function start() {
70
debug("spawn", bpath + "mongod", args.join(' '));
71
- var child = spawnSync(bpath + "mongod", args);
+ var spawn = (opts.args.fork)? spawnSync : require('child_process').spawn;
72
+ var child = spawn(bpath + "mongod", args);
73
mongodb_logs(child.stdout.toString());
74
mongodb_logs(child.stderr.toString());
75
0 commit comments