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
This commit is contained in:
thestig@chromium.org 2012-01-24 00:46:54 +00:00
parent 30566abed8
commit 4ab7db99c1

View file

@ -73,19 +73,16 @@
#include <stdio.h> #include <stdio.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/prctl.h> #include <sys/prctl.h>
#include <sys/syscall.h>
#include <sys/wait.h>
#include <unistd.h>
#if !defined(__ANDROID__) #if !defined(__ANDROID__)
#include <sys/signal.h> #include <sys/signal.h>
#endif
#include <sys/syscall.h>
#if !defined(__ANDROID__)
#include <sys/ucontext.h> #include <sys/ucontext.h>
#include <sys/user.h> #include <sys/user.h>
#endif
#include <sys/wait.h>
#if !defined(__ANDROID__)
#include <ucontext.h> #include <ucontext.h>
#endif #endif
#include <unistd.h>
#include <algorithm> #include <algorithm>
#include <utility> #include <utility>
@ -400,7 +397,7 @@ bool ExceptionHandler::GenerateDump(CrashContext *context) {
&thread_arg, NULL, NULL, NULL); &thread_arg, NULL, NULL, NULL);
int r, status; int r, status;
// Allow the child to ptrace us // Allow the child to ptrace us
prctl(PR_SET_PTRACER, child, 0, 0, 0); sys_prctl(PR_SET_PTRACER, child);
SendContinueSignalToChild(); SendContinueSignalToChild();
do { do {
r = sys_waitpid(child, &status, __WALL); r = sys_waitpid(child, &status, __WALL);