Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306033
b: refs/heads/master
c: 4c3181b
h: refs/heads/master
i:
  306031: dd9ecaf
v: v3
  • Loading branch information
Matt Fleming authored and Al Viro committed May 22, 2012
1 parent 61b7565 commit f7c65c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 80c1dfa91c44665f2cecc1666050b2e8e04cef68
refs/heads/master: 4c3181bd3bde449d79b04e127b41ef02cade8005
15 changes: 3 additions & 12 deletions trunk/arch/score/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,7 @@ score_rt_sigreturn(struct pt_regs *regs)
goto badframe;

sigdelsetmask(&set, ~_BLOCKABLE);
spin_lock_irq(&current->sighand->siglock);
current->blocked = set;
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
set_current_blocked(&set);

sig = restore_sigcontext(regs, &frame->rs_uc.uc_mcontext);
if (sig < 0)
Expand Down Expand Up @@ -272,14 +269,8 @@ static int handle_signal(unsigned long sig, siginfo_t *info,
*/
ret = setup_rt_frame(ka, regs, sig, oldset, info);

if (ret == 0) {
spin_lock_irq(&current->sighand->siglock);
sigorsets(&current->blocked, &current->blocked, &ka->sa.sa_mask);
if (!(ka->sa.sa_flags & SA_NODEFER))
sigaddset(&current->blocked, sig);
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
}
if (ret == 0)
block_sigmask(ka, sig);

return ret;
}
Expand Down

0 comments on commit f7c65c8

Please sign in to comment.