Remove redundant check for PTRACE_LISTEN availability

As ptrace.h already ensures that PTRACE_LISTEN is defined,
there is no need to check this fact in other places.

* strace.c (ptrace_restart): Do not check that PTRACE_LISTEN is defined.
This commit is contained in:
Дмитрий Левин 2016-08-30 09:12:06 +00:00
parent e2ea606a60
commit ae914db459

View File

@ -405,10 +405,8 @@ ptrace_restart(int op, struct tcb *tcp, int sig)
msg = "CONT";
if (op == PTRACE_DETACH)
msg = "DETACH";
#ifdef PTRACE_LISTEN
if (op == PTRACE_LISTEN)
msg = "LISTEN";
#endif
/*
* Why curcol != 0? Otherwise sometimes we get this:
*