Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 260824
b: refs/heads/master
c: c1095c6
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Jul 27, 2011
1 parent d77c23c commit c6134ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 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: 678624e401b0b7747762b5223fb23f86dcdacc93
refs/heads/master: c1095c6da518b0b64e724f629051fa67655cd8d9
5 changes: 1 addition & 4 deletions trunk/kernel/compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -992,11 +992,8 @@ asmlinkage long compat_sys_rt_sigsuspend(compat_sigset_t __user *unewset, compat
sigset_from_compat(&newset, &newset32);
sigdelsetmask(&newset, sigmask(SIGKILL)|sigmask(SIGSTOP));

spin_lock_irq(&current->sighand->siglock);
current->saved_sigmask = current->blocked;
current->blocked = newset;
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
set_current_blocked(&newset);

current->state = TASK_INTERRUPTIBLE;
schedule();
Expand Down
17 changes: 5 additions & 12 deletions trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -3102,15 +3102,11 @@ SYSCALL_DEFINE0(sgetmask)

SYSCALL_DEFINE1(ssetmask, int, newmask)
{
int old;

spin_lock_irq(&current->sighand->siglock);
old = current->blocked.sig[0];
int old = current->blocked.sig[0];
sigset_t newset;

siginitset(&current->blocked, newmask & ~(sigmask(SIGKILL)|
sigmask(SIGSTOP)));
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
siginitset(&newset, newmask & ~(sigmask(SIGKILL) | sigmask(SIGSTOP)));
set_current_blocked(&newset);

return old;
}
Expand Down Expand Up @@ -3167,11 +3163,8 @@ SYSCALL_DEFINE2(rt_sigsuspend, sigset_t __user *, unewset, size_t, sigsetsize)
return -EFAULT;
sigdelsetmask(&newset, sigmask(SIGKILL)|sigmask(SIGSTOP));

spin_lock_irq(&current->sighand->siglock);
current->saved_sigmask = current->blocked;
current->blocked = newset;
recalc_sigpending();
spin_unlock_irq(&current->sighand->siglock);
set_current_blocked(&newset);

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

0 comments on commit c6134ae

Please sign in to comment.