Commit 6c46ada7 authored by Coywolf Qi Hunt's avatar Coywolf Qi Hunt Committed by Linus Torvalds

[PATCH] reparent_to_init cleanup

This patch hides reparent_to_init().  reparent_to_init() should only be
called by daemonize().
Signed-off-by: default avatarCoywolf Qi Hunt <coywolf@lovecn.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 2f4cface
...@@ -126,7 +126,6 @@ thread(void *unused) ...@@ -126,7 +126,6 @@ thread(void *unused)
kvoyagerd_running = 1; kvoyagerd_running = 1;
reparent_to_init();
daemonize(THREAD_NAME); daemonize(THREAD_NAME);
set_timeout = 0; set_timeout = 0;
......
...@@ -1021,7 +1021,6 @@ extern void exit_itimers(struct signal_struct *); ...@@ -1021,7 +1021,6 @@ extern void exit_itimers(struct signal_struct *);
extern NORET_TYPE void do_group_exit(int); extern NORET_TYPE void do_group_exit(int);
extern void reparent_to_init(void);
extern void daemonize(const char *, ...); extern void daemonize(const char *, ...);
extern int allow_signal(int); extern int allow_signal(int);
extern int disallow_signal(int); extern int disallow_signal(int);
......
...@@ -220,7 +220,7 @@ static inline int has_stopped_jobs(int pgrp) ...@@ -220,7 +220,7 @@ static inline int has_stopped_jobs(int pgrp)
* *
* NOTE that reparent_to_init() gives the caller full capabilities. * 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); write_lock_irq(&tasklist_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment