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 +#include +#include +#include + #if !defined(__ANDROID__) #include -#endif -#include -#if !defined(__ANDROID__) #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);