]> Pileus Git - ~andy/linux/blobdiff - kernel/signal.c
kill PT_ATTACHED
[~andy/linux] / kernel / signal.c
index 5d30ff5618475273c60e6aeb59e7cf092603b9a4..6d6d1ab39e7e3f7dbeea0800a59e336bf4865137 100644 (file)
@@ -1556,11 +1556,6 @@ static inline int may_ptrace_stop(void)
 {
        if (!likely(current->ptrace & PT_PTRACED))
                return 0;
-
-       if (unlikely(current->parent == current->real_parent &&
-                   (current->ptrace & PT_ATTACHED)))
-               return 0;
-
        /*
         * Are we in the middle of do_coredump?
         * If so and our tracer is also part of the coredump stopping