* [8/9] remove __has_stopped_jobs()
@ 2002-11-12 2:20 William Lee Irwin III
0 siblings, 0 replies; only message in thread
From: William Lee Irwin III @ 2002-11-12 2:20 UTC (permalink / raw)
To: linux-kernel
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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-12 2:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-12 2:20 [8/9] remove __has_stopped_jobs() William Lee Irwin III
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome