CrashRecovery/Darwin: On Darwin, raise sends a signal to the main thread instead
authorDaniel Dunbar <daniel@zuster.org>
Thu, 19 Aug 2010 23:45:39 +0000 (23:45 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 19 Aug 2010 23:45:39 +0000 (23:45 +0000)
commitb08ceb8135daf015dc38f9d9048cb075215da383
tree2702b88a9d027d30a65d6a83a28e483a91dc73f3
parent7c73b8b180e4dfb82cb508368c7ee43279fb9bc4
CrashRecovery/Darwin: On Darwin, raise sends a signal to the main thread instead
of the current thread. This has the unfortunate effect that assert() and abort()
will end up bypassing our crash recovery attempts. We work around this for
anything in the same linkage unit by just defining our own versions of the
assert handler and abort.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111583 91177308-0d34-0410-b5e6-96231b3b80d8
lib/System/Unix/Signals.inc