[PATCH] reparent_to_init cleanup
authorCoywolf Qi Hunt <coywolf@lovecn.org>
Sat, 16 Apr 2005 22:26:01 +0000 (15:26 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:26:01 +0000 (15:26 -0700)
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>
arch/i386/mach-voyager/voyager_thread.c
include/linux/sched.h
kernel/exit.c

index 9980eef31fda891fd6d290e5d41a30830f6001a5..a9341b0eebffa396199db1b268707b6ba893b782 100644 (file)
@@ -126,7 +126,6 @@ thread(void *unused)
 
        kvoyagerd_running = 1;
 
-       reparent_to_init();
        daemonize(THREAD_NAME);
 
        set_timeout = 0;
index a30e91f40da6740f791a89989e2edb44e18ed5b2..1cced971232c6fae4cbfd5148d491a7e75caf01f 100644 (file)
@@ -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);
index 6dd4ebe1dd9034f014dd65ea3ed767bcf5760823..39d35935b3718a6a8161ea6043692168f81f127e 100644 (file)
@@ -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);