~vcs-imports/busybox/trunk

« back to all changes in this revision

Viewing changes to console-tools/showkey.c

  • Committer: Denys Vlasenko
  • Date: 2020-12-29 15:53:11 UTC
  • Revision ID: git-v1:77a51a2709de1b646ab493f0bf771d896de6efc2
randomconfig fixes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 * Licensed under GPLv2, see file LICENSE in this source tree.
8
8
 */
9
9
//config:config SHOWKEY
10
 
//config:       bool "showkey (4.9 kb)"
 
10
//config:       bool "showkey (4.7 kb)"
11
11
//config:       default y
12
12
//config:       help
13
13
//config:       Shows keys pressed.
106
106
                xioctl(STDIN_FILENO, KDSKBMODE, (void *)(ptrdiff_t)((option_mask32 & OPT_k) ? K_MEDIUMRAW : K_RAW));
107
107
 
108
108
                // we should exit on any signal; signals should interrupt read
109
 
                bb_signals_norestart(BB_FATAL_SIGS, record_signo);
 
109
                bb_signals_recursive_norestart(BB_FATAL_SIGS, record_signo);
110
110
 
111
111
                // inform user that program ends after time of inactivity
112
112
                printf(press_keys, "10s after last keypress");