mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] call_usermodehelper fix
@ 2003-10-01  1:46 Chris Wright
  0 siblings, 0 replies; only message in thread
From: Chris Wright @ 2003-10-01  1:46 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel

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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-10-01  1:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-01  1:46 [PATCH] call_usermodehelper fix Chris Wright

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®