Re: [PATCH xserver] os/inputthread: Ensure pollfd refreshing

2016-10-15 Thread Keith Packard
Mihail Konev writes: > When putting a device node into a poll-request list, do not overwrite a > "please-remove" element with the same fd, so that a closed device file > is ospoll_remove'd prior to being ospoll_add'ed. > > Before, the opposite order was possible, resulting in

[PATCH xserver] os/inputthread: Ensure pollfd refreshing

2016-10-15 Thread Mihail Konev
When putting a device node into a poll-request list, do not overwrite a "please-remove" element with the same fd, so that a closed device file is ospoll_remove'd prior to being ospoll_add'ed. Before, the opposite order was possible, resulting in ospoll_add considering the newly opened file being