From: William Lee Irwin III <wli@holomorphy.com>
To: linux-kernel@vger.kernel.org
Subject: [8/9] remove __has_stopped_jobs()
Date: Mon, 11 Nov 2002 18:20:20 -0800 [thread overview]
Message-ID: <E18BQf6-00041M-00@holomorphy> (raw)
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);
}
reply other threads:[~2002-11-12 2:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E18BQf6-00041M-00@holomorphy \
--to=wli@holomorphy.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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