From 36d613ef59051ee8762c5da4443797982469c90b Mon Sep 17 00:00:00 2001 From: Justin Cohen Date: Wed, 12 Oct 2016 08:55:53 -0400 Subject: 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 --- src/client/mac/handler/exception_handler.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client/mac/handler') 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, -- cgit v1.2.1