Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | Date | Tue, 30 Sep 2003 18:46:38 -0700 | From | Chris Wright <> | 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/
| ![\](/images/icornerr.gif) |