lkml.org 
[lkml]   [2009]   [Feb]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 5/4] tracehook_notify_death: use task_detached() helper
    Now that task_detached() is exported, change tracehook_notify_death()
    to use this helper, nobody else checks ->exit_signal == -1 by hand.

    Signed-off-by: Oleg Nesterov <oleg@redhat.com>

    --- 6.29-rc3/include/linux/tracehook.h~5_NOTIFY_USE_HELPER 2008-10-10 00:13:53.000000000 +0200
    +++ 6.29-rc3/include/linux/tracehook.h 2009-02-11 21:54:57.000000000 +0100
    @@ -507,7 +507,7 @@ static inline int tracehook_notify_jctl(
    static inline int tracehook_notify_death(struct task_struct *task,
    void **death_cookie, int group_dead)
    {
    - if (task->exit_signal == -1)
    + if (task_detached(task))
    return task->ptrace ? SIGCHLD : DEATH_REAP;

    /*


    \
     
     \ /
      Last update: 2009-02-11 22:19    [W:0.028 / U:0.852 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site