Skip to content

Commit

Permalink
SERVER-2808 try to compile non apple
Browse files Browse the repository at this point in the history
  • Loading branch information
astaple committed Mar 24, 2011
1 parent badd1cd commit 674a1b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/db.cpp
Expand Up @@ -1116,7 +1116,7 @@ namespace mongo {
dbexit( EXIT_ABRUPT );
}

void abruptQuitWithAddrSignal( int signal, struct __siginfo *siginfo, void * ) {
void abruptQuitWithAddrSignal( int signal, siginfo_t *siginfo, void * ) {
ostringstream oss;
oss << "Invalid";
if ( signal == SIGSEGV || signal == SIGBUS ) {
Expand Down Expand Up @@ -1152,6 +1152,7 @@ namespace mongo {

void setupSignals( bool inFork ) {
struct sigaction addrSignals;
memset( &addrSignals, 0, sizeof( struct sigaction ) );
addrSignals.sa_sigaction = abruptQuitWithAddrSignal;
sigemptyset( &addrSignals.sa_mask );
addrSignals.sa_flags = SA_SIGINFO;
Expand Down

0 comments on commit 674a1b8

Please sign in to comment.