From 4ab7db99c15b1f5b9fe5de93ead76920a7b96c22 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Tue, 24 Jan 2012 00:46:54 +0000 Subject: 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 --- src/client/linux/handler/exception_handler.cc | 13 +++++-------- 1 file changed, 5 insertions(+), 8 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 7949582f..823823d4 100644 --- a/src/client/linux/handler/exception_handler.cc +++ b/src/client/linux/handler/exception_handler.cc @@ -73,19 +73,16 @@ #include #include #include -#if !defined(__ANDROID__) -#include -#endif #include +#include +#include + #if !defined(__ANDROID__) +#include #include #include -#endif -#include -#if !defined(__ANDROID__) #include #endif -#include #include #include @@ -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); -- cgit v1.2.1