diff options
Diffstat (limited to 'arch/x86/kernel/signal.c')
-rw-r--r-- | arch/x86/kernel/signal.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c index 115eac43148..b68ccadd2ff 100644 --- a/arch/x86/kernel/signal.c +++ b/arch/x86/kernel/signal.c | |||
@@ -478,18 +478,8 @@ asmlinkage int | |||
478 | sys_sigsuspend(int history0, int history1, old_sigset_t mask) | 478 | sys_sigsuspend(int history0, int history1, old_sigset_t mask) |
479 | { | 479 | { |
480 | sigset_t blocked; | 480 | sigset_t blocked; |
481 | |||
482 | current->saved_sigmask = current->blocked; | ||
483 | |||
484 | mask &= _BLOCKABLE; | ||
485 | siginitset(&blocked, mask); | 481 | siginitset(&blocked, mask); |
486 | set_current_blocked(&blocked); | 482 | return sigsuspend(&blocked); |
487 | |||
488 | current->state = TASK_INTERRUPTIBLE; | ||
489 | schedule(); | ||
490 | |||
491 | set_restore_sigmask(); | ||
492 | return -ERESTARTNOHAND; | ||
493 | } | 483 | } |
494 | 484 | ||
495 | asmlinkage int | 485 | asmlinkage int |