0
0
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:
Aaron 2009-02-04 13:18:33 -05:00
parent dce936422b
commit 0b3d1f1a15

View File

@ -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 );
}