diff options
-rw-r--r-- | os/inputthread.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/os/inputthread.c b/os/inputthread.c index a8c9fd361..0a950fa12 100644 --- a/os/inputthread.c +++ b/os/inputthread.c @@ -85,16 +85,16 @@ static void* WaitForInput(void* argument) { int i; - fd_set InputDevices; + fd_set ReadyInputDevices; tid_generation = syscall(__NR_gettid); - FD_ZERO(&InputDevices); + FD_ZERO(&ReadyInputDevices); while (1) { - XFD_COPYSET (&InputThreadFd, &InputDevices); - i = Select(MaxInputDevices, &InputDevices, NULL, NULL, NULL); + XFD_COPYSET (&InputThreadFd, &ReadyInputDevices); + i = Select(MaxInputDevices, &ReadyInputDevices, NULL, NULL, NULL); DebugF("threading input generation\n"); if (i <= 0) /* An error or timeout occurred */ { @@ -115,7 +115,7 @@ WaitForInput(void* argument) else { for (i = 0; i < NumDevicesThreaded; i++) - if ((FD_ISSET(ThreadDevFunc[i].fd, &InputThreadFd)) + if ((FD_ISSET(ThreadDevFunc[i].fd, &ReadyInputDevices)) && ThreadDevFunc[i].f) (*ThreadDevFunc[i].f)(ThreadDevFunc[i].closure); |