public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Coywolf Qi Hunt" <coywolf@lovecn.org>
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org
Subject: [patch] reparent_to_init-cleanup
Date: Mon, 11 Apr 2005 15:26:35 +0800	[thread overview]
Message-ID: <20050411071808.GA3890@lovecn.org> (raw)

Hello,

Split out from my oom-killer patch, this patch hides reparent_to_init(). reparent_to_init()
should only be called by daemonize(). This applies to 2.6.12-rc2-mm2 too.

Signed-off-by: Coywolf Qi Hunt <coywolf@lovecn.org>
---

 arch/i386/mach-voyager/voyager_thread.c |    1 -
 include/linux/sched.h                   |    1 -
 kernel/exit.c                           |    2 +-
 3 files changed, 1 insertion(+), 3 deletions(-)

diff -pruN 2.6.12-rc2-mm1/arch/i386/mach-voyager/voyager_thread.c 2.6.12-rc2-mm1-cy/arch/i386/mach-voyager/voyager_thread.c
--- 2.6.12-rc2-mm1/arch/i386/mach-voyager/voyager_thread.c	2004-08-20 14:39:58.000000000 +0800
+++ 2.6.12-rc2-mm1-cy/arch/i386/mach-voyager/voyager_thread.c	2005-04-08 18:53:06.000000000 +0800
@@ -126,7 +126,6 @@ thread(void *unused)
 
 	kvoyagerd_running = 1;
 
-	reparent_to_init();
 	daemonize(THREAD_NAME);
 
 	set_timeout = 0;
diff -pruN 2.6.12-rc2-mm1/include/linux/sched.h 2.6.12-rc2-mm1-cy/include/linux/sched.h
--- 2.6.12-rc2-mm1/include/linux/sched.h	2005-04-06 10:18:18.000000000 +0800
+++ 2.6.12-rc2-mm1-cy/include/linux/sched.h	2005-04-08 18:53:06.000000000 +0800
@@ -1068,7 +1068,6 @@ extern void exit_itimers(struct signal_s
 
 extern NORET_TYPE void do_group_exit(int);
 
-extern void reparent_to_init(void);
 extern void daemonize(const char *, ...);
 extern int allow_signal(int);
 extern int disallow_signal(int);
diff -pruN 2.6.12-rc2-mm1/kernel/exit.c 2.6.12-rc2-mm1-cy/kernel/exit.c
--- 2.6.12-rc2-mm1/kernel/exit.c	2005-04-06 10:18:20.000000000 +0800
+++ 2.6.12-rc2-mm1-cy/kernel/exit.c	2005-04-08 18:53:06.000000000 +0800
@@ -224,7 +224,7 @@ static inline int has_stopped_jobs(int p
  *
  * NOTE that reparent_to_init() gives the caller full capabilities.
  */
-void reparent_to_init(void)
+static inline void reparent_to_init(void)
 {
 	write_lock_irq(&tasklist_lock);
 

                 reply	other threads:[~2005-04-11  7:26 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=20050411071808.GA3890@lovecn.org \
    --to=coywolf@lovecn.org \
    --cc=akpm@osdl.org \
    --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