diff options
author | Justin Cohen <justincohen@google.com> | 2016-10-12 08:55:53 -0400 |
---|---|---|
committer | Mark Mentovai <mark@chromium.org> | 2016-10-13 04:34:00 +0000 |
commit | 36d613ef59051ee8762c5da4443797982469c90b (patch) | |
tree | a5147d571caf994178205a0a3ea10e01f7bbb8ff /src/client/mac/handler | |
parent | Fix dump_syms for C++ after 7398ce15b79d (diff) | |
download | breakpad-36d613ef59051ee8762c5da4443797982469c90b.tar.xz |
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>
Diffstat (limited to 'src/client/mac/handler')
-rw-r--r-- | src/client/mac/handler/exception_handler.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/mac/handler/exception_handler.cc b/src/client/mac/handler/exception_handler.cc index 6928e984..0bdad474 100644 --- a/src/client/mac/handler/exception_handler.cc +++ b/src/client/mac/handler/exception_handler.cc @@ -356,6 +356,11 @@ bool ExceptionHandler::WriteMinidumpWithException( bool report_current_thread) { bool result = false; +#if TARGET_OS_IPHONE + // _exit() should never be called on iOS. + exit_after_write = false; +#endif + if (directCallback_) { if (directCallback_(callback_context_, exception_type, |