fork: Skip setting TIF_SIGPENDING in ptrace_init_task
authorEric W. Biederman <ebiederm@xmission.com>
Sat, 4 Aug 2018 01:10:54 +0000 (20:10 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 4 Aug 2018 01:10:54 +0000 (20:10 -0500)
The code in calculate_sigpending will now handle this so
it is just redundant and possibly a little confusing
to continue setting TIF_SIGPENDING in ptrace_init_task.

Suggested-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/ptrace.h

index 037bf0ef1ae94ffddd23906901c82fa362582cbf..4f36431c380bcdb9b70b2cf6f2599488e404ca2e 100644 (file)
@@ -214,8 +214,6 @@ static inline void ptrace_init_task(struct task_struct *child, bool ptrace)
                        task_set_jobctl_pending(child, JOBCTL_TRAP_STOP);
                else
                        sigaddset(&child->pending.signal, SIGSTOP);
-
-               set_tsk_thread_flag(child, TIF_SIGPENDING);
        }
        else
                child->ptracer_cred = NULL;