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.
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.
Hello. Please ignore 0002-0009 in the previous message and read the attached new 0002-0008 instead. Thanks.