diff mbox

[2/3] signalfd: make POLLRDNORM working

Message ID aa87cc0d8d8027d7150e101133ca74457ce62256.1478559566.git.mirq-linux@rere.qmqm.pl (mailing list archive)
State New, archived
Headers show

Commit Message

Michał Mirosław Nov. 7, 2016, 11:10 p.m. UTC
poll(2) suggests this should be equivalent to POLLIN.

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

Patch

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;