projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8a124d
)
wait_for_helper: remove unneeded do_sigaction()
author
Oleg Nesterov
<
[email protected]
>
Wed, 9 May 2007 09:34:36 +0000
(
02:34
-0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 9 May 2007 19:30:53 +0000
(12:30 -0700)
allow_signal(SIGCHLD) does all necessary job, no need to call do_sigaction()
prior to.
Signed-off-by: Oleg Nesterov <
[email protected]
>
Cc: Rusty Russell <
[email protected]
>
Cc: "Eric W. Biederman" <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/kmod.c
patch
|
blob
|
history
diff --git
a/kernel/kmod.c
b/kernel/kmod.c
index 6cea9db25c3d36ef215fad691a9a49a0a2a9bc3e..4d32eb077179a2babd3f49b9f31631d4c6e27bb7 100644
(file)
--- a/
kernel/kmod.c
+++ b/
kernel/kmod.c
@@
-185,14
+185,9
@@
static int wait_for_helper(void *data)
{
struct subprocess_info *sub_info = data;
pid_t pid;
- struct k_sigaction sa;
/* Install a handler: if SIGCLD isn't handled sys_wait4 won't
* populate the status, but will return -ECHILD. */
- sa.sa.sa_handler = SIG_IGN;
- sa.sa.sa_flags = 0;
- siginitset(&sa.sa.sa_mask, sigmask(SIGCHLD));
- do_sigaction(SIGCHLD, &sa, NULL);
allow_signal(SIGCHLD);
pid = kernel_thread(____call_usermodehelper, sub_info, SIGCHLD);