vcs: fasync(): make it consistent with poll()
authorNicolas Pitre <nicolas.pitre@linaro.org>
Wed, 9 Jan 2019 03:55:04 +0000 (22:55 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2019 12:47:55 +0000 (13:47 +0100)
commitfad08b205cf134759c28d182905bf27762017192
treed40ba6a4b42aef0209c89a1a36dffa7d50d25b50
parent1bf931ab94a963851aa1dfba5d9f03f9f1ad8637
vcs: fasync(): make it consistent with poll()

We use POLLPRI not POLLIN to wait for data with poll() as there is
never any incoming data stream per se. Let's use the same semantic
with fasync() for consistency, including the fact that a vt may go away.

No known user space ever relied on the SIGIO reason so far, let alone
FASYNC, so the risk of breakage is pretty much nonexistent.

Signed-off-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/vc_screen.c