#766240 kbd: cosmetic updates to showkey.c

Package:
kbd
Source:
kbd
Description:
Linux console font and keytable utilities
Submitter:
Nicolas Boulenguez
Date:
2026-02-25 04:55:02 UTC
Severity:
wishlist
Tags:
#766240#5
Date:
2014-10-21 17:56:10 UTC
From:
To:
Hello.

In src/showkey.c, when the keyboard mode is not K_XLATE, a warning is
displayed that showkey may fail under X.  I suggest to consider
K_UNICODE as normal as K_XLATE, or even remove this warning since
getfd() will exit() if X is detected.

Later, the code calls signal() for every known signal. This fails with
SIGKILL and SIGSTOP, but this has never been detected because the
return value is not tested.  I suggest to update the signal list from
signal(7), store it in an array for readability, and check errors.

#766240#10
Date:
2026-02-24 17:53:07 UTC
From:
To:
Hello.

A rebased version of the patch is attached.

While testing it, I have implemented parts of the changes described in
commit 55c3c680:

   In the future we might want to enable building the shared libkeymap
   again, but before that we likely need to change debian/rules to do
   a proper multi-flavour build for the udeb and the deb instead of
   the current hand-crafted rules that duplicates part of the upstream
   build system.

#766240#15
Date:
2026-02-25 04:52:07 UTC
From:
To:
Hello.
Please ignore 0002-0009 in the previous message
and read the attached new 0002-0008 instead.
Thanks.