Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58089
b: refs/heads/master
c: f8738c5
h: refs/heads/master
i:
  58087: 25b6785
v: v3
  • Loading branch information
Davide Libenzi authored and Linus Torvalds committed Jun 28, 2007
1 parent b66efd5 commit 473a889
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 58e78475ec706f93e0cc049449ffd11fbfdadb3e
refs/heads/master: f8738c5c5298d55ccfc26383f9f45af082a9be57
3 changes: 2 additions & 1 deletion trunk/fs/signalfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ static unsigned int signalfd_poll(struct file *file, poll_table *wait)
* the peer disconnects.
*/
if (signalfd_lock(ctx, &lk)) {
if (next_signal(&lk.tsk->pending, &ctx->sigmask) > 0 ||
if ((lk.tsk == current &&
next_signal(&lk.tsk->pending, &ctx->sigmask) > 0) ||
next_signal(&lk.tsk->signal->shared_pending,
&ctx->sigmask) > 0)
events |= POLLIN;
Expand Down

0 comments on commit 473a889

Please sign in to comment.