mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-24 07:05:43 +01:00
Don't call _exit() on iOS.
Calling _exit() is something iOS inherited from Mac OS X Breakpad, and isn't necessary on iOS. This is necessary because recently iOS has started re-launching the application if breakpad catches a startup crash and calls exit during startup. BUG=chromium:645146 Change-Id: Ibb5a681282a886259424655aa8506a80a1fd4f4c Reviewed-on: https://chromium-review.googlesource.com/397058 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
98b6a6309f
commit
36d613ef59
@ -356,6 +356,11 @@ bool ExceptionHandler::WriteMinidumpWithException(
|
|||||||
bool report_current_thread) {
|
bool report_current_thread) {
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
|
#if TARGET_OS_IPHONE
|
||||||
|
// _exit() should never be called on iOS.
|
||||||
|
exit_after_write = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (directCallback_) {
|
if (directCallback_) {
|
||||||
if (directCallback_(callback_context_,
|
if (directCallback_(callback_context_,
|
||||||
exception_type,
|
exception_type,
|
||||||
|
Loading…
Reference in New Issue
Block a user