aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-11-18 13:59:01 +0000
committernealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2009-11-18 13:59:01 +0000
commit2712a8c712469462aba3c670154edc51b6a47dda (patch)
treeee0a9f0e2e7c898be19d6cae3482606c3a650bce
parentAlways export catch_exception_raise. (diff)
downloadbreakpad-2712a8c712469462aba3c670154edc51b6a47dda.tar.xz
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
-rw-r--r--src/client/mac/handler/exception_handler.cc3
1 files changed, 3 insertions, 0 deletions
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);
}