xserver-multidpi/hw/xfree86/os-support
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
..
bsd dix: Use OsSignal() not signal() 2016-06-08 11:36:31 -04:00
bus Replace all checks for 'linux' macro with '__linux__' 2017-05-11 15:24:05 -04:00
hurd Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
linux Replace all checks for 'linux' macro with '__linux__' 2017-05-11 15:24:05 -04:00
misc Replace all checks for 'linux' macro with '__linux__' 2017-05-11 15:24:05 -04:00
shared xfree86: Fix interpretation of xf86WaitForInput timeout 2017-05-29 13:53:39 +10:00
solaris Switch poll() users to xserver_poll() 2016-07-21 15:04:36 -04:00
stub xfree86: Remove xf86ReadBIOS 2014-09-16 11:58:53 -04:00
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Makefile.am xfree86: Add stubs for os-support to help adding new architecture support 2011-10-15 21:18:47 -07:00
meson.build meson: Make driprotos and libdrm optional 2017-05-10 14:43:13 -04:00
xf86_OSlib.h os, xfree86: Stop being so weird about <limits.h> 2017-05-12 09:49:07 -04:00
xf86_OSproc.h Remove SIGIO support for input [v5] 2016-05-26 16:07:54 -07:00
xf86OSpriv.h xfree86: Remove xf86LinearVidMem 2014-09-16 11:58:53 -04:00