Process eat 100% of current resources after "Process XKB events in loop" commit
mahatma-kaganovich opened this issue · 2 comments
mahatma-kaganovich commented
After commit 0b92da3 ("Process XKB events in loop") on xorg-server 1.19.0 (at least, others don't try) kbdd always on top and eat 100% CPU. Rolling back this single patch solve problem.
mahatma-kaganovich commented
Fixed for me by changing "while(){}" to "do{}while()" in this place.
https://raw.githubusercontent.com/mahatma-kaganovich/raw/6c870f1a5cb2a29fcd522a9b1b41102ce0f77160/app-portage/ppatch/files/extensions/x11-misc/kbdd/prepare/dowhile.patch
PS Now all fine, but googling also subject to future deep test: change XPending(display) to XEventsQueued(display, QueuedAlready) - blocking vs. non-blocking.
qnikst commented
Thanks, I'll try to check that asap.