lkml.org 
[lkml]   [2003]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] call_usermodehelper fix
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.024 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site