diff options
author | digit@chromium.org <digit@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-06-27 14:04:52 +0000 |
---|---|---|
committer | digit@chromium.org <digit@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-06-27 14:04:52 +0000 |
commit | 93cebf538e33c1b7066c857ed9929483153136d6 (patch) | |
tree | d0a98691b02dab00e0b9b94998215fb19e09268f /src/client/linux/handler | |
parent | Fix a race condition in AutoCriticalSection. (diff) | |
download | breakpad-93cebf538e33c1b7066c857ed9929483153136d6.tar.xz |
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
Diffstat (limited to 'src/client/linux/handler')
-rw-r--r-- | src/client/linux/handler/exception_handler.cc | 7 |
1 files changed, 1 insertions, 6 deletions
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); |