diff options
Diffstat (limited to 'arch/um/kernel/signal.c')
-rw-r--r-- | arch/um/kernel/signal.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/arch/um/kernel/signal.c b/arch/um/kernel/signal.c index 6acf13c1740b..909e9b8d6612 100644 --- a/arch/um/kernel/signal.c +++ b/arch/um/kernel/signal.c | |||
@@ -23,9 +23,9 @@ EXPORT_SYMBOL(unblock_signals); | |||
23 | * OK, we're invoking a handler | 23 | * OK, we're invoking a handler |
24 | */ | 24 | */ |
25 | static int handle_signal(struct pt_regs *regs, unsigned long signr, | 25 | static int handle_signal(struct pt_regs *regs, unsigned long signr, |
26 | struct k_sigaction *ka, siginfo_t *info, | 26 | struct k_sigaction *ka, siginfo_t *info) |
27 | sigset_t *oldset) | ||
28 | { | 27 | { |
28 | sigset_t *oldset = sigmask_to_save(); | ||
29 | unsigned long sp; | 29 | unsigned long sp; |
30 | int err; | 30 | int err; |
31 | 31 | ||
@@ -77,14 +77,9 @@ static int kern_do_signal(struct pt_regs *regs) | |||
77 | int sig, handled_sig = 0; | 77 | int sig, handled_sig = 0; |
78 | 78 | ||
79 | while ((sig = get_signal_to_deliver(&info, &ka_copy, regs, NULL)) > 0) { | 79 | while ((sig = get_signal_to_deliver(&info, &ka_copy, regs, NULL)) > 0) { |
80 | sigset_t *oldset; | ||
81 | if (test_thread_flag(TIF_RESTORE_SIGMASK)) | ||
82 | oldset = ¤t->saved_sigmask; | ||
83 | else | ||
84 | oldset = ¤t->blocked; | ||
85 | handled_sig = 1; | 80 | handled_sig = 1; |
86 | /* Whee! Actually deliver the signal. */ | 81 | /* Whee! Actually deliver the signal. */ |
87 | if (!handle_signal(regs, sig, &ka_copy, &info, oldset)) { | 82 | if (!handle_signal(regs, sig, &ka_copy, &info)) { |
88 | /* | 83 | /* |
89 | * a signal was successfully delivered; the saved | 84 | * a signal was successfully delivered; the saved |
90 | * sigmask will have been stored in the signal frame, | 85 | * sigmask will have been stored in the signal frame, |