diff options
Diffstat (limited to 'src/client')
-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); |