From 92104149e8c0e19dd314df11900202c7a5e4a2b9 Mon Sep 17 00:00:00 2001 From: Ken Pettit Date: Tue, 8 Jan 2019 08:16:43 -0600 Subject: [PATCH] drivers/net/telnet.c: Add missing logic to set read event flags in poll() method. --- drivers/net/telnet.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/telnet.c b/drivers/net/telnet.c index 5ca23d1219..a68d48aebc 100644 --- a/drivers/net/telnet.c +++ b/drivers/net/telnet.c @@ -1103,6 +1103,7 @@ static int telnet_poll(FAR struct file *filep, FAR struct pollfd *fds, { /* Yes.. then signal the poll logic */ + fds->revents |= (POLLRDNORM & fds->events); nxsem_post(fds->sem); }