From 93cebf538e33c1b7066c857ed9929483153136d6 Mon Sep 17 00:00:00 2001 From: "digit@chromium.org" Date: Wed, 27 Jun 2012 14:04:52 +0000 Subject: Fix Android build of client library http://breakpad.appspot.com/401002/ git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@973 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/linux/handler/exception_handler.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/client/linux/handler') diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc index 5d9e93f7..4b78424f 100644 --- a/src/client/linux/handler/exception_handler.cc +++ b/src/client/linux/handler/exception_handler.cc @@ -397,15 +397,10 @@ bool ExceptionHandler::GenerateDump(CrashContext *context) { logger::write("\n", 1); } -#if defined(__ANDROID__) - const pid_t child = clone( - ThreadEntry, stack, CLONE_FILES | CLONE_FS | CLONE_UNTRACED, - &thread_arg); -#else const pid_t child = sys_clone( ThreadEntry, stack, CLONE_FILES | CLONE_FS | CLONE_UNTRACED, &thread_arg, NULL, NULL, NULL); -#endif + int r, status; // Allow the child to ptrace us sys_prctl(PR_SET_PTRACER, child); -- cgit v1.2.1