lkml.org 
[lkml]   [2002]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[8/9] remove __has_stopped_jobs()
    From
    Date
    This patch removes has_stopped_jobs(), which is unused.

    exit.c | 17 +++--------------
    1 files changed, 3 insertions(+), 14 deletions(-)


    diff -urpN 06_alloc_virtual/kernel/exit.c 07_has_stopped_jobs/kernel/exit.c
    --- 06_alloc_virtual/kernel/exit.c 2002-11-10 19:28:30.000000000 -0800
    +++ 07_has_stopped_jobs/kernel/exit.c 2002-11-11 17:31:21.000000000 -0800
    @@ -190,7 +190,7 @@ int is_orphaned_pgrp(int pgrp)
    return will_become_orphaned_pgrp(pgrp, 0);
    }

    -static inline int __has_stopped_jobs(int pgrp)
    +static inline int has_stopped_jobs(int pgrp)
    {
    int retval = 0;
    struct task_struct *p;
    @@ -206,17 +206,6 @@ static inline int __has_stopped_jobs(int
    return retval;
    }

    -static inline int has_stopped_jobs(int pgrp)
    -{
    - int retval;
    -
    - read_lock(&tasklist_lock);
    - retval = __has_stopped_jobs(pgrp);
    - read_unlock(&tasklist_lock);
    -
    - return retval;
    -}
    -
    /**
    * reparent_to_init() - Reparent the calling kernel thread to the init task.
    *
    @@ -504,7 +493,7 @@ static inline void reparent_thread(task_
    (p->session == father->session)) {
    int pgrp = p->pgrp;

    - if (__will_become_orphaned_pgrp(pgrp, 0) && __has_stopped_jobs(pgrp)) {
    + if (__will_become_orphaned_pgrp(pgrp, 0) && has_stopped_jobs(pgrp)) {
    __kill_pg_info(SIGHUP, (void *)1, pgrp);
    __kill_pg_info(SIGCONT, (void *)1, pgrp);
    }
    @@ -589,7 +578,7 @@ static void exit_notify(void)
    if ((t->pgrp != current->pgrp) &&
    (t->session == current->session) &&
    __will_become_orphaned_pgrp(current->pgrp, current) &&
    - __has_stopped_jobs(current->pgrp)) {
    + has_stopped_jobs(current->pgrp)) {
    __kill_pg_info(SIGHUP, (void *)1, current->pgrp);
    __kill_pg_info(SIGCONT, (void *)1, current->pgrp);
    }
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2005-03-22 13:30    [W:0.022 / U:0.268 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site