Skip to content

Commit 40faa8d

Browse files
committed
SERVER-9578 install mongos signal handler for SIGUSR1 before spawning any threads
1 parent ed3efe4 commit 40faa8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mongo/s/server.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ namespace mongo {
220220

221221
void init() {
222222
serverID.init();
223-
setupSignalHandlers();
223+
224224
Logstream::get().addGlobalTee( new RamLog("global") );
225225
}
226226

@@ -263,7 +263,7 @@ namespace mongo {
263263
using namespace mongo;
264264

265265
static bool runMongosServer( bool doUpgrade ) {
266-
266+
setupSignalHandlers();
267267
setThreadName( "mongosMain" );
268268
printShardingVersionInfo( false );
269269

0 commit comments

Comments
 (0)