0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

handle more non-server programs

This commit is contained in:
Aaron 2009-05-20 11:29:21 -04:00
parent 6516e72042
commit 04d6ddd42b

View File

@ -217,7 +217,7 @@ namespace mongo {
}
argv_[ args.nFields() ] = 0;
if ( program == "mongo" )
if ( program != "mongod" && program != "mongos" )
port_ = 0;
else
assert( port_ > 0 );