From: Chris Wright <chrisw@osdl.org>
To: akpm@osdl.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] call_usermodehelper fix
Date: Tue, 30 Sep 2003 18:46:38 -0700 [thread overview]
Message-ID: <20030930184638.C722@osdlab.pdx.osdl.net> (raw)
This gives the wait_for_helper thread its own sighand struct, so that
it's not stomping on it's parent's SIGCHLD handler (which is intended to
be SIG_IGN). Now the parent keventd thread properly reaps children.
Look ok?
thanks,
-chris
--- 2.6.0-test6-mm1-clean/kernel/kmod.c 2003-09-29 17:46:22.000000000 -0700
+++ 2.6.0-test6-mm1/kernel/kmod.c 2003-09-30 18:17:04.000000000 -0700
@@ -217,7 +217,7 @@
* until that is done. */
if (sub_info->wait)
pid = kernel_thread(wait_for_helper, sub_info,
- CLONE_KERNEL | SIGCHLD);
+ CLONE_FS | CLONE_FILES | SIGCHLD);
else
pid = kernel_thread(____call_usermodehelper, sub_info,
CLONE_VFORK | SIGCHLD);
reply other threads:[~2003-10-01 1:46 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=20030930184638.C722@osdlab.pdx.osdl.net \
--to=chrisw@osdl.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®