diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2010-10-11 23:29:28 -0400 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2011-01-07 08:06:59 -0500 |
commit | d1574df7e01d427c2ed80ada11433a72907ca472 (patch) | |
tree | a2009894be6fc3c429fbec70e15cf1e0d4485a5e /arch/m68knommu/kernel/signal.c | |
parent | 710e91e455caf5cfec02892d667b41f312ec166c (diff) |
m68knommu: Handle multiple pending signals
we shouldn't bugger off to userland when there still are
pending signals; among other things it makes e.g. SIGSEGV
triggered by failure to build a sigframe to be delivered
_now_ and not when we hit the next syscall or interrupt.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'arch/m68knommu/kernel/signal.c')
-rw-r--r-- | arch/m68knommu/kernel/signal.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/m68knommu/kernel/signal.c b/arch/m68knommu/kernel/signal.c index c973230dad82..c070f3f64255 100644 --- a/arch/m68knommu/kernel/signal.c +++ b/arch/m68knommu/kernel/signal.c | |||
@@ -717,7 +717,7 @@ handle_signal(int sig, struct k_sigaction *ka, siginfo_t *info, | |||
717 | * want to handle. Thus you cannot kill init even with a SIGKILL even by | 717 | * want to handle. Thus you cannot kill init even with a SIGKILL even by |
718 | * mistake. | 718 | * mistake. |
719 | */ | 719 | */ |
720 | asmlinkage int do_signal(struct pt_regs *regs) | 720 | asmlinkage void do_signal(struct pt_regs *regs) |
721 | { | 721 | { |
722 | struct k_sigaction ka; | 722 | struct k_sigaction ka; |
723 | siginfo_t info; | 723 | siginfo_t info; |
@@ -731,7 +731,7 @@ asmlinkage int do_signal(struct pt_regs *regs) | |||
731 | * if so. | 731 | * if so. |
732 | */ | 732 | */ |
733 | if (!user_mode(regs)) | 733 | if (!user_mode(regs)) |
734 | return 1; | 734 | return; |
735 | 735 | ||
736 | if (test_thread_flag(TIF_RESTORE_SIGMASK)) | 736 | if (test_thread_flag(TIF_RESTORE_SIGMASK)) |
737 | oldset = ¤t->saved_sigmask; | 737 | oldset = ¤t->saved_sigmask; |
@@ -743,7 +743,7 @@ asmlinkage int do_signal(struct pt_regs *regs) | |||
743 | /* Whee! Actually deliver the signal. */ | 743 | /* Whee! Actually deliver the signal. */ |
744 | handle_signal(signr, &ka, &info, oldset, regs); | 744 | handle_signal(signr, &ka, &info, oldset, regs); |
745 | clear_thread_flag(TIF_RESTORE_SIGMASK); | 745 | clear_thread_flag(TIF_RESTORE_SIGMASK); |
746 | return 1; | 746 | return; |
747 | } | 747 | } |
748 | 748 | ||
749 | /* Did we come from a system call? */ | 749 | /* Did we come from a system call? */ |
@@ -757,5 +757,4 @@ asmlinkage int do_signal(struct pt_regs *regs) | |||
757 | clear_thread_flag(TIF_RESTORE_SIGMASK); | 757 | clear_thread_flag(TIF_RESTORE_SIGMASK); |
758 | sigprocmask(SIG_SETMASK, ¤t->saved_sigmask, NULL); | 758 | sigprocmask(SIG_SETMASK, ¤t->saved_sigmask, NULL); |
759 | } | 759 | } |
760 | return 0; | ||
761 | } | 760 | } |