sim_console: Fix polling to check for POLLIN
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 19 Jun 2020 10:27:31 +0000 (20:27 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 25 Jun 2020 22:17:23 +0000 (08:17 +1000)
commitfc4e13ae67ef7d49480cd0095850814c0d040583
treeda920822ff759ae8731de419021c348d59127f69
parentfb5c16d05e31983f1127e2f8a97d60f0ce0b4d81
sim_console: Fix polling to check for POLLIN

Under some circumstances we get POLLHUP which we incorrectly
treat as having a character in the buffer.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
sim_console_c.c