Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1042261 - Don't crash while trying to report a crash if reporting…
Browse files Browse the repository at this point in the history
… is disabled. r=ted
  • Loading branch information
jld committed Jul 22, 2014
1 parent 73a7ace commit 56e25f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions toolkit/crashreporter/nsExceptionHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1860,6 +1860,10 @@ nsresult WriteMinidumpForException(EXCEPTION_POINTERS* aExceptionInfo)
#ifdef XP_LINUX
bool WriteMinidumpForSigInfo(int signo, siginfo_t* info, void* uc)
{
if (!gExceptionHandler) {
// Crash reporting is disabled.
return false;
}
return gExceptionHandler->HandleSignal(signo, info, uc);
}
#endif
Expand Down

0 comments on commit 56e25f6

Please sign in to comment.