jD91mZM2 / xidlehook

GitLab: https://gitlab.com/jD91mZM2/xidlehook
MIT License
387 stars 33 forks source link

Handle spurious wakeups #7

Closed jD91mZM2 closed 6 years ago

jD91mZM2 commented 6 years ago

It's entirely possible, although clearly unlikely since it hasn't happened to me yet, that the mio event loop returns an event that is a false positive.

All file descriptors need to be nonblocking, and any WouldBlock I/O errors need to be ignored. Even the signalfd.

jD91mZM2 commented 6 years ago

Should now be fixed since https://github.com/jD91mZM2/xidlehook/commit/67b7f09d1a89f09cbfadea463667617500231894 :smile: