From: akpm@osdl.org
To: torvalds@osdl.org
Cc: linux-kernel@vger.kernel.org, akpm@osdl.org, coywolf@lovecn.org
Subject: [patch 150/198] reparent_to_init cleanup
Date: Tue, 12 Apr 2005 03:32:55 -0700 [thread overview]
Message-ID: <200504121033.j3CAX1Pm005748@shell0.pdx.osdl.net> (raw)
From: "Coywolf Qi Hunt" <coywolf@lovecn.org>
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>
---
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);
_
reply other threads:[~2005-04-12 11:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200504121033.j3CAX1Pm005748@shell0.pdx.osdl.net \
--to=akpm@osdl.org \
--cc=coywolf@lovecn.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).