diff options
author | Yoshisato Yanagisawa <yyanagisawa@google.com> | 2015-11-18 15:40:12 +0900 |
---|---|---|
committer | Yoshisato Yanagisawa <yyanagisawa@google.com> | 2015-11-26 16:19:22 +0900 |
commit | cda16b3443e2d6ef88cdbbe10b9a11adea6f33fe (patch) | |
tree | 165a2163546d8a78bda5385431128f932d9a571b /src/glog/logging.h.in | |
parent | f46e0745a842b2edc924b6d384acf01fd7034c62 (diff) | |
download | glog-cda16b3443e2d6ef88cdbbe10b9a11adea6f33fe.tar.gz glog-cda16b3443e2d6ef88cdbbe10b9a11adea6f33fe.tar.bz2 glog-cda16b3443e2d6ef88cdbbe10b9a11adea6f33fe.zip |
Reset SIGABRT action only if FailureSignalHandler is installed.
When I set my own signal handler to SIGABRT, it did not executed
with CHECK. That is because SIGABRT handler is reset to default
just before glog calls abort.
Let me make it reset only if the handler is what glog installed
i.e. FailureSignalHandler.
Diffstat (limited to 'src/glog/logging.h.in')
-rw-r--r-- | src/glog/logging.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glog/logging.h.in b/src/glog/logging.h.in index 455bd28..b1de2c9 100644 --- a/src/glog/logging.h.in +++ b/src/glog/logging.h.in @@ -923,6 +923,9 @@ template <bool> struct CompileAssert { }; struct CrashReason; + +// Returns true if FailureSignalHandler is installed. +bool IsFailureSignalHandlerInstalled(); } // namespace glog_internal_namespace_ #define GOOGLE_GLOG_COMPILE_ASSERT(expr, msg) \ |