avoid spurious POLLIN returns in signalfd
commitf8738c5c5298d55ccfc26383f9f45af082a9be57
authorDavide Libenzi <davidel@xmailserver.org>
Wed, 27 Jun 2007 21:09:59 +0000 (27 14:09 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 28 Jun 2007 18:34:54 +0000 (28 11:34 -0700)
treebaa7c6f2a31dcc4c4d2875f73b1462be5fbb388d
parent58e78475ec706f93e0cc049449ffd11fbfdadb3e
avoid spurious POLLIN returns in signalfd

The new code in kernel/signal.c does not allow fetching private signals
from another task.  This patch avoid spurious POLLIN returns from a
signalfd poll(2) operation.

Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/signalfd.c