[PATCH 2/3] signalfd: make POLLRDNORM working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



poll(2) suggests this should be equivalent to POLLIN.

Signed-off-by: Michał Mirosław <mirq-linux@xxxxxxxxxxxx>
---
 fs/signalfd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/signalfd.c b/fs/signalfd.c
index 270221f..b7eff4a 100644
--- a/fs/signalfd.c
+++ b/fs/signalfd.c
@@ -68,7 +68,7 @@ static unsigned int signalfd_poll(struct file *file, poll_table *wait)
 	if (next_signal(&current->pending, &ctx->sigmask) ||
 	    next_signal(&current->signal->shared_pending,
 			&ctx->sigmask))
-		events |= POLLIN;
+		events |= POLLIN | POLLRDNORM;
 	spin_unlock_irq(&current->sighand->siglock);
 
 	return events;
-- 
2.10.2

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux