Reset SIGABRT action only if FailureSignalHandler is installed.
authorYoshisato Yanagisawa <yyanagisawa@google.com>
Wed, 18 Nov 2015 06:40:12 +0000 (15:40 +0900)
committerYoshisato Yanagisawa <yyanagisawa@google.com>
Thu, 26 Nov 2015 07:19:22 +0000 (16:19 +0900)
commitcda16b3443e2d6ef88cdbbe10b9a11adea6f33fe
tree165a2163546d8a78bda5385431128f932d9a571b
parentf46e0745a842b2edc924b6d384acf01fd7034c62
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.
src/glog/logging.h.in
src/signalhandler.cc
src/utilities.cc
src/windows/glog/logging.h