diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-09-11 15:39:41 -0400 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-09-11 16:11:53 -0400 |
commit | 7ba9a08f3d5924a5b605b2a19938eed78f7dbf86 (patch) | |
tree | c84d6bbfcb254121873ccceba7134318c61f40eb /src/mongo/util/signal_handlers_synchronous.cpp | |
parent | 602bc97e78d99d22d7ae6b867b6e92f5e2e279ca (diff) | |
download | mongo-7ba9a08f3d5924a5b605b2a19938eed78f7dbf86.tar.gz |
SERVER-31918 sigaction: give the ucontext parameter a name
Diffstat (limited to 'src/mongo/util/signal_handlers_synchronous.cpp')
-rw-r--r-- | src/mongo/util/signal_handlers_synchronous.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/util/signal_handlers_synchronous.cpp b/src/mongo/util/signal_handlers_synchronous.cpp index 2331190fabc..7bc5c50dadf 100644 --- a/src/mongo/util/signal_handlers_synchronous.cpp +++ b/src/mongo/util/signal_handlers_synchronous.cpp @@ -262,7 +262,10 @@ void myPureCallHandler() { #else -void abruptQuitWithAddrSignal(int signalNum, siginfo_t* siginfo, void*) { +void abruptQuitWithAddrSignal(int signalNum, siginfo_t* siginfo, void* ucontext_erased) { + // For convenient debugger access. + MONGO_COMPILER_VARIABLE_UNUSED auto ucontext = static_cast<const ucontext_t*>(ucontext_erased); + MallocFreeOStreamGuard lk{}; const char* action = (signalNum == SIGSEGV || signalNum == SIGBUS) ? "access" : "operation"; |