Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295143
b: refs/heads/master
c: d982d59
h: refs/heads/master
i:
  295141: d35fad0
  295139: 80ff485
  295135: bf09ff0
v: v3
  • Loading branch information
Matt Fleming authored and Linus Torvalds committed Mar 23, 2012
1 parent 22fec85 commit 10f8f60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 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: f6adb9a6aec0ec9540e15f354e5cdec88b2aea33
refs/heads/master: d982d5955e9033015a2cc119aa7c0a878e275964
20 changes: 6 additions & 14 deletions trunk/arch/um/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,8 @@ static int handle_signal(struct pt_regs *regs, unsigned long signr,

if (err)
force_sigsegv(signr, current);
else {
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, signr);
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
}
else
block_sigmask(ka, signr);

return err;
}
Expand Down Expand Up @@ -158,12 +151,11 @@ int do_signal(void)
*/
long sys_sigsuspend(int history0, int history1, old_sigset_t mask)
{
sigset_t blocked;

mask &= _BLOCKABLE;
spin_lock_irq(&current->sighand->siglock);
current->saved_sigmask = current->blocked;
siginitset(&current->blocked, mask);
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
siginitset(&blocked, mask);
set_current_blocked(&blocked);

current->state = TASK_INTERRUPTIBLE;
schedule();
Expand Down

0 comments on commit 10f8f60

Please sign in to comment.