* [PATCH] powerpc: Fix sigmask handling in sys_sigsuspend.
@ 2006-01-23 12:07 Heiko Carstens
0 siblings, 0 replies; only message in thread
From: Heiko Carstens @ 2006-01-23 12:07 UTC (permalink / raw)
To: Andrew Morton
Cc: linux-kernel, linuxppc-dev, David Woodhouse, Paul Mackerras,
Benjamin Herrenschmidt
From: Heiko Carstens <heiko.carstens@de.ibm.com>
Better save the sigmask instead of throwing it away so it can be restored.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
Completely untested. Just noticed this when adding TIF_RESTORE_SIGMASK
support for s390.
arch/powerpc/kernel/signal_32.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/arch/powerpc/kernel/signal_32.c b/arch/powerpc/kernel/signal_32.c
index 3747ab0..c6d0595 100644
--- a/arch/powerpc/kernel/signal_32.c
+++ b/arch/powerpc/kernel/signal_32.c
@@ -254,11 +254,9 @@ int do_signal(sigset_t *oldset, struct p
*/
long sys_sigsuspend(old_sigset_t mask)
{
- sigset_t saveset;
-
mask &= _BLOCKABLE;
spin_lock_irq(¤t->sighand->siglock);
- saveset = current->blocked;
+ current->saved_sigmask = current->blocked;
siginitset(¤t->blocked, mask);
recalc_sigpending();
spin_unlock_irq(¤t->sighand->siglock);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-23 12:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-23 12:07 [PATCH] powerpc: Fix sigmask handling in sys_sigsuspend Heiko Carstens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).