diff options
author | thestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-01-24 00:46:54 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-01-24 00:46:54 +0000 |
commit | 4ab7db99c15b1f5b9fe5de93ead76920a7b96c22 (patch) | |
tree | 09c0344db2009ac82cd5c89829206c8579eae9df | |
parent | Implement core dump to minidump conversion. (diff) | |
download | breakpad-4ab7db99c15b1f5b9fe5de93ead76920a7b96c22.tar.xz |
Use sys_prctl instead of prctl.
http://breakpad.appspot.com/339002
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@906 4c0a9323-5329-0410-9bdc-e9ce6186880e
-rw-r--r-- | src/client/linux/handler/exception_handler.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc index 7949582f..823823d4 100644 --- a/src/client/linux/handler/exception_handler.cc +++ b/src/client/linux/handler/exception_handler.cc @@ -73,19 +73,16 @@ #include <stdio.h> #include <sys/mman.h> #include <sys/prctl.h> -#if !defined(__ANDROID__) -#include <sys/signal.h> -#endif #include <sys/syscall.h> +#include <sys/wait.h> +#include <unistd.h> + #if !defined(__ANDROID__) +#include <sys/signal.h> #include <sys/ucontext.h> #include <sys/user.h> -#endif -#include <sys/wait.h> -#if !defined(__ANDROID__) #include <ucontext.h> #endif -#include <unistd.h> #include <algorithm> #include <utility> @@ -400,7 +397,7 @@ bool ExceptionHandler::GenerateDump(CrashContext *context) { &thread_arg, NULL, NULL, NULL); int r, status; // Allow the child to ptrace us - prctl(PR_SET_PTRACER, child, 0, 0, 0); + sys_prctl(PR_SET_PTRACER, child); SendContinueSignalToChild(); do { r = sys_waitpid(child, &status, __WALL); |