Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 57855
b: refs/heads/master
c: caec4e8
h: refs/heads/master
i:
  57853: b01e9a5
  57851: 4a845bd
  57847: dff84d6
  57839: 58638fa
  57823: 3b4a449
  57791: c88d7bd
  57727: c06840c
  57599: 366f590
  57343: f802f7a
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Linus Torvalds committed Jun 18, 2007
1 parent f29c79a commit 67805f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: bd197234b0a616c8f04f6b682326a5a24b33ca92
refs/heads/master: caec4e8dc85e0644ec24aeb36285e1ba02da58cc
8 changes: 7 additions & 1 deletion trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,13 @@ static int __dequeue_signal(struct sigpending *pending, sigset_t *mask,
*/
int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info)
{
int signr = __dequeue_signal(&tsk->pending, mask, info);
int signr = 0;

/* We only dequeue private signals from ourselves, we don't let
* signalfd steal them
*/
if (tsk == current)
signr = __dequeue_signal(&tsk->pending, mask, info);
if (!signr) {
signr = __dequeue_signal(&tsk->signal->shared_pending,
mask, info);
Expand Down

0 comments on commit 67805f9

Please sign in to comment.