xserver-multidpi/hw/xfree86/os-support/shared
Jason Gerecke 2fbf62b2fb xfree86: Fix interpretation of xf86WaitForInput timeout
Commit aa6717ce2 switched xf86WaitForInput from using select(2) to using
poll(2). Before this change, the timeout was interpreted as being in
microseconds; afterwards it is fed directly to xorg_poll which interprets
it as being in milliseconds. This results in the function potentially
blocking 1000x longer than intended. This commit scales down the timeout
argument before passing it to xorg_poll, being careful to ensure the result
is not rounded down due to integer division.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-05-29 13:53:39 +10:00
..
agp_noop.c xfree86: os-support: fix old-style function definition warnings 2012-11-05 13:24:58 -06:00
ioperm_noop.c Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
kmod_noop.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
platform_noop.c xfree86: use udev to provide device enumeration for kms devices (v10) 2012-07-06 10:20:19 +01:00
pm_noop.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
posix_tty.c xfree86: Fix interpretation of xf86WaitForInput timeout 2017-05-29 13:53:39 +10:00
sigio.c Switch poll() users to xserver_poll() 2016-07-21 15:04:36 -04:00
sigiostubs.c Remove SIGIO support for input [v5] 2016-05-26 16:07:54 -07:00
vidmem.c xfree86: Remove xf86CheckMTRR 2014-09-16 11:58:53 -04:00
VTsw_noop.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
VTsw_usl.c dix: Use OsSignal() not signal() 2016-06-08 11:36:31 -04:00