diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-21 21:42:32 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-05-21 23:52:30 -0400 |
commit | 68f3f16d9ad0f1e28ab3fd0001ab5798c41f15a3 (patch) | |
tree | fd023109413f5eb28b364663fdf4bf2eabca47d4 /arch/arm/kernel | |
parent | bf67f3a5c456a18f2e8d062f7e88506ef2cd9837 (diff) |
new helper: sigsuspend()
guts of saved_sigmask-based sigsuspend/rt_sigsuspend. Takes
kernel sigset_t *.
Open-coded instances replaced with calling it.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/signal.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index 73d9a420850d..4e5fdd9bd9e3 100644 --- a/arch/arm/kernel/signal.c +++ b/arch/arm/kernel/signal.c | |||
@@ -67,17 +67,8 @@ const unsigned long syscall_restart_code[2] = { | |||
67 | asmlinkage int sys_sigsuspend(int restart, unsigned long oldmask, old_sigset_t mask) | 67 | asmlinkage int sys_sigsuspend(int restart, unsigned long oldmask, old_sigset_t mask) |
68 | { | 68 | { |
69 | sigset_t blocked; | 69 | sigset_t blocked; |
70 | |||
71 | current->saved_sigmask = current->blocked; | ||
72 | |||
73 | mask &= _BLOCKABLE; | ||
74 | siginitset(&blocked, mask); | 70 | siginitset(&blocked, mask); |
75 | set_current_blocked(&blocked); | 71 | return sigsuspend(&blocked); |
76 | |||
77 | current->state = TASK_INTERRUPTIBLE; | ||
78 | schedule(); | ||
79 | set_restore_sigmask(); | ||
80 | return -ERESTARTNOHAND; | ||
81 | } | 72 | } |
82 | 73 | ||
83 | asmlinkage int | 74 | asmlinkage int |