CrashRecoveryContext: Add missing return, so that the signal fires after we our

routine is off the stack. Otherwise we show up rather confusingly in the stack
trace.

llvm-svn: 116755
This commit is contained in:
Daniel Dunbar 2010-10-18 21:55:18 +00:00
parent 643c330b91
commit 418e7046f7
1 changed files with 3 additions and 0 deletions

View File

@ -128,6 +128,9 @@ static void CrashRecoverySignalHandler(int Signal) {
// This call of Disable isn't thread safe, but it doesn't actually matter.
CrashRecoveryContext::Disable();
raise(Signal);
// The signal will be thrown once the signal mask is restored.
return;
}
// Unblock the signal we received.