0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 09:06:21 +01:00

sleep to allow os to recover resources of killed process

This commit is contained in:
Aaron 2009-03-31 14:59:58 -04:00
parent cec6d1af97
commit 2821a57dcb
2 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,9 @@ doTest = function( signal ) {
} );
stopMongod( 27019, signal );
sleep( 4000 );
s = startMongoProgram( "mongod", "--port", "27019", "--dbpath", "/data/db/" + baseName + "-slave", "--slave", "--source", "127.0.0.1:27018" );
assert.soon( function() {

View File

@ -484,6 +484,7 @@ void killDb( int port, int signal ) {
close( dbs[ port ].second );
dbs.erase( port );
sleepms( 1000 );
}
v8::Handle< v8::Value > StopMongoProgram( const v8::Arguments &a ) {