find_mongo_pids: Fix regression in 203a82d.

Don't consider "ps" stderr to be an error. This occurs on OSX Mountain Lion if
DYLD_LIBRARY_PATH or a similar env var is set, and is harmless.
This commit is contained in:
David Glasser
2013-01-07 22:14:04 -08:00
parent 864371f9ab
commit 2d27799008

View File

@@ -19,8 +19,6 @@ var find_mongo_pids = function (app_dir, port, callback) {
function (error, stdout, stderr) {
if (error) {
callback({reason: error});
} else if (stderr) {
callback({reason: 'ps produced stderr ' + stderr});
} else {
var pids = [];