diff options
-rw-r--r-- | db/db.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/db.cpp b/db/db.cpp index fdd06df2674..97869c52250 100644 --- a/db/db.cpp +++ b/db/db.cpp @@ -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 ) { @@ -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; |