Skip to content

Commit

Permalink
[PATCH] reparent_to_init cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Coywolf Qi Hunt authored and Linus Torvalds committed Apr 16, 2005
1 parent 2f4cfac commit 6c46ada
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion arch/i386/mach-voyager/voyager_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ thread(void *unused)

kvoyagerd_running = 1;

reparent_to_init();
daemonize(THREAD_NAME);

set_timeout = 0;
Expand Down
1 change: 0 additions & 1 deletion include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 6c46ada

Please sign in to comment.