From: "Coywolf Qi Hunt" <[email protected]>
This patch hides reparent_to_init(). reparent_to_init() should only be
called by daemonize().
Signed-off-by: Coywolf Qi Hunt <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---
25-akpm/arch/i386/mach-voyager/voyager_thread.c | 1 -
25-akpm/include/linux/sched.h | 1 -
25-akpm/kernel/exit.c | 2 +-
3 files changed, 1 insertion(+), 3 deletions(-)
diff -puN arch/i386/mach-voyager/voyager_thread.c~reparent_to_init-cleanup arch/i386/mach-voyager/voyager_thread.c
--- 25/arch/i386/mach-voyager/voyager_thread.c~reparent_to_init-cleanup 2005-04-12 03:21:39.578120112 -0700
+++ 25-akpm/arch/i386/mach-voyager/voyager_thread.c 2005-04-12 03:21:39.583119352 -0700
@@ -126,7 +126,6 @@ thread(void *unused)
kvoyagerd_running = 1;
- reparent_to_init();
daemonize(THREAD_NAME);
set_timeout = 0;
diff -puN include/linux/sched.h~reparent_to_init-cleanup include/linux/sched.h
--- 25/include/linux/sched.h~reparent_to_init-cleanup 2005-04-12 03:21:39.579119960 -0700
+++ 25-akpm/include/linux/sched.h 2005-04-12 03:21:39.585119048 -0700
@@ -1021,7 +1021,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);
diff -puN kernel/exit.c~reparent_to_init-cleanup kernel/exit.c
--- 25/kernel/exit.c~reparent_to_init-cleanup 2005-04-12 03:21:39.581119656 -0700
+++ 25-akpm/kernel/exit.c 2005-04-12 03:21:39.586118896 -0700
@@ -220,7 +220,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);
_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]