Skip to content

loadkeys: Make it safer to run loadkeys with foreground console in raw mode - #156

Open
bdrung wants to merge 1 commit into
legionus:masterfrom
bdrung:check-not-raw-first
Open

loadkeys: Make it safer to run loadkeys with foreground console in raw mode#156
bdrung wants to merge 1 commit into
legionus:masterfrom
bdrung:check-not-raw-first

Conversation

@bdrung

@bdrung bdrung commented Jul 15, 2026

Copy link
Copy Markdown

If not invoked with an explicit console parameter, try to find any console not in raw mode. This makes it safer to run loadkeys if the foreground console might be in raw mode, for example if Plymouth or X might be running.

We are carrying this patch in Ubuntu since kbd 1.15-1ubuntu3 in 2010.

…w mode

If not invoked with an explicit console parameter, try to find any
console not in raw mode. This makes it safer to run loadkeys if the
foreground console might be in raw mode, for example if Plymouth or X
might be running.
@legionus

Copy link
Copy Markdown
Owner

@bdrung I know about this patch. I've seen it in ubuntu for years. It's some kind of crazy hack for me. This patch simply replaces getfd with its own implementation and provides no explanation as to why this is necessary other than that it "makes it safer".

Sorry, no. First, you need to describe the problem.

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.

3 participants