reparent_to_init-cleanup
PATCH 1/1 reparent_to_init-cleanup
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 <[email protected]>
---
arch/i386/mach-voyager/voyager_thread.c | 1 - include/linux/sched.h | 1 - kernel/exit.c | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-)
arch/i386/mach-voyager/voyager_thread.c +0 -1
@@ -126,7 +126,6 @@ thread(void *unused) kvoyagerd_running =1 ; -reparent_to_init ();daemonize (THREAD_NAME ); set_timeout =0 ;
include/linux/sched.h +0 -1
@@ -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 );
kernel/exit.c +1 -1
@@ -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);