From 2712a8c712469462aba3c670154edc51b6a47dda Mon Sep 17 00:00:00 2001 From: nealsid Date: Wed, 18 Nov 2009 13:59:01 +0000 Subject: Forward exceptions in child processes to Apple's Crash Reporter http://breakpad.appspot.com/38001/show R=mmentovai, jeremy A=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@429 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/mac/handler/exception_handler.cc | 3 +++ 1 file changed, 3 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 4a5d4596..9886a529 100644 --- a/src/client/mac/handler/exception_handler.cc +++ b/src/client/mac/handler/exception_handler.cc @@ -438,6 +438,9 @@ kern_return_t catch_exception_raise(mach_port_t port, mach_port_t failed_thread, exception_type_t exception, exception_data_t code, mach_msg_type_number_t code_count) { + if (task != mach_task_self()) { + return KERN_FAILURE; + } return ForwardException(task, failed_thread, exception, code, code_count); } -- cgit v1.2.1