Skip to content

Comments

Fix kmscon using 100% CPU when trying to read systemd seats configuration#157

Merged
kdj0c merged 1 commit intoAetf:mainfrom
kdj0c:fix_seat_sd_eating_cpu
Nov 19, 2025
Merged

Fix kmscon using 100% CPU when trying to read systemd seats configuration#157
kdj0c merged 1 commit intoAetf:mainfrom
kdj0c:fix_seat_sd_eating_cpu

Conversation

@kdj0c
Copy link
Collaborator

@kdj0c kdj0c commented Nov 16, 2025

When selinux prevents kmscon to read from systemd socket, kmscon uses 100% CPU, because its epoll loop has always a read event on systemd socket, that cannot be cleared.
So remove the fd from the epoll loop, if read returns an error.

When selinux prevents kmscon to read from systemd socket, kmscon uses
100% CPU, because its epoll loop has always a read event on systemd
socket, that cannot be cleared.
So remove the fd from the epoll loop, if read returns an error.

Signed-off-by: Jocelyn Falempe <[email protected]>
@kdj0c kdj0c merged commit 85397b6 into Aetf:main Nov 19, 2025
1 check passed
@kdj0c kdj0c mentioned this pull request Nov 19, 2025
@kdj0c kdj0c deleted the fix_seat_sd_eating_cpu branch December 5, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant