mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
Validate return value of pthread_sigmask
This commit is contained in:
parent
dce936422b
commit
0b3d1f1a15
@ -626,7 +626,7 @@ namespace mongo {
|
||||
sigemptyset( &asyncSignals );
|
||||
sigaddset( &asyncSignals, SIGINT );
|
||||
sigaddset( &asyncSignals, SIGTERM );
|
||||
pthread_sigmask( SIG_SETMASK, &asyncSignals, 0 );
|
||||
assert( pthread_sigmask( SIG_SETMASK, &asyncSignals, 0 ) == 0 );
|
||||
boost::thread it( interruptThread );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user