aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/handler/exception_handler.cc
diff options
context:
space:
mode:
authordigit@chromium.org <digit@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-06-27 14:04:52 +0000
committerdigit@chromium.org <digit@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-06-27 14:04:52 +0000
commit93cebf538e33c1b7066c857ed9929483153136d6 (patch)
treed0a98691b02dab00e0b9b94998215fb19e09268f /src/client/linux/handler/exception_handler.cc
parentFix a race condition in AutoCriticalSection. (diff)
downloadbreakpad-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/exception_handler.cc')
-rw-r--r--src/client/linux/handler/exception_handler.cc7
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);