lkml.org 
[lkml]   [2018]   [Aug]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH v5 4/6] fork: Skip setting TIF_SIGPENDING in ptrace_init_task
    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 | 2 --
    1 file changed, 2 deletions(-)

    diff --git a/include/linux/ptrace.h b/include/linux/ptrace.h
    index 037bf0ef1ae9..4f36431c380b 100644
    --- a/include/linux/ptrace.h
    +++ b/include/linux/ptrace.h
    @@ -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;
    --
    2.17.1
    \
     
     \ /
      Last update: 2018-08-09 08:58    [W:4.062 / U:0.320 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site