diff options
author | Aaron <aaron@10gen.com> | 2009-04-03 11:55:24 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-04-03 11:55:24 -0400 |
commit | 38e53ec2ff0991ab7c69719da33f39c312ae169d (patch) | |
tree | f2e858dcc10c1f736270452a82eae8fd1034d7b4 | |
parent | 80de3918c38cee1935a6779e7b91561d3b823007 (diff) | |
download | mongo-38e53ec2ff0991ab7c69719da33f39c312ae169d.tar.gz |
wait up to a full minute after sending sigkill
-rw-r--r-- | shell/ShellUtils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ShellUtils.cpp b/shell/ShellUtils.cpp index f9cb83837d6..4939d5565ea 100644 --- a/shell/ShellUtils.cpp +++ b/shell/ShellUtils.cpp @@ -476,7 +476,7 @@ void killDb( int port, int signal ) { assert( 0 == kill( pid, signal ) ); int i = 0; - for( ; i < 20; ++i ) { + for( ; i < 65; ++i ) { if ( i == 5 ) { cout << "process on port " << port << "not terminated, sending sigkill" << endl; assert( 0 == kill( pid, SIGKILL ) ); @@ -489,7 +489,7 @@ void killDb( int port, int signal ) { cout << "waiting for process on port " << port << " to terminate" << endl; sleepms( 1000 ); } - if ( i == 20 ) + if ( i == 65 ) assert( "Failed to terminate process" == 0 ); close( dbs[ port ].second ); |