poll: check for POLLERR|POLLHUP in WaitForInput
poll: check for POLLERR|POLLHUP in WaitForInput

X.Org bug#26383 <http://bugs.freedesktop.org/26383>

Acked-by: Juliusz Chroboczek <12ecebd88909c40796c80e28f9a8c79a2bf4c037@pps.jussieu.fr>
Signed-off-by: Julien Cristau <82c7ebd12259428dfee9dc86e69f3a9d6f3dccb9@debian.org>

markusn/luit,markusn/luit,freedesktop-unofficial-mirror/xorg__app__luit,freedesktop-unofficial-mirror/xorg__app__luit