diff options
author | Coywolf Qi Hunt <coywolf@lovecn.org> | 2005-04-16 15:26:01 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 15:26:01 -0700 |
commit | 6c46ada700568897165409e618ed584683838b49 (patch) | |
tree | 3e58ca796d70c7867bb2acd6fbe239f671decd78 | |
parent | 2f4cfacecd522849dac254f87273525eeca33d1d (diff) | |
download | linux-6c46ada700568897165409e618ed584683838b49.tar.gz linux-6c46ada700568897165409e618ed584683838b49.tar.bz2 linux-6c46ada700568897165409e618ed584683838b49.zip |
[PATCH] reparent_to_init cleanup
This patch hides reparent_to_init(). reparent_to_init() should only be
called by daemonize().
Signed-off-by: Coywolf Qi Hunt <coywolf@lovecn.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r-- | arch/i386/mach-voyager/voyager_thread.c | 1 | ||||
-rw-r--r-- | include/linux/sched.h | 1 | ||||
-rw-r--r-- | kernel/exit.c | 2 |
3 files changed, 1 insertions, 3 deletions
diff --git a/arch/i386/mach-voyager/voyager_thread.c b/arch/i386/mach-voyager/voyager_thread.c index 9980eef31fda..a9341b0eebff 100644 --- a/arch/i386/mach-voyager/voyager_thread.c +++ b/arch/i386/mach-voyager/voyager_thread.c @@ -126,7 +126,6 @@ thread(void *unused) kvoyagerd_running = 1; - reparent_to_init(); daemonize(THREAD_NAME); set_timeout = 0; diff --git a/include/linux/sched.h b/include/linux/sched.h index a30e91f40da6..1cced971232c 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -1021,7 +1021,6 @@ extern void exit_itimers(struct signal_struct *); 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 --git a/kernel/exit.c b/kernel/exit.c index 6dd4ebe1dd90..39d35935b371 100644 --- a/kernel/exit.c +++ b/kernel/exit.c @@ -220,7 +220,7 @@ static inline int has_stopped_jobs(int pgrp) * * 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); |