diff options
author | Denys Vlasenko | 2017-08-06 12:17:46 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-08-06 12:17:46 +0200 |
commit | 32b60cc0db90e517399ca9fa73a8ac1140db810d (patch) | |
tree | ecc6d2bb067319f1c9511cc5e04d4e6eb0ec302b /libbb | |
parent | 6517bbc76c5e79273f72b951362125241552935d (diff) | |
download | busybox-32b60cc0db90e517399ca9fa73a8ac1140db810d.zip busybox-32b60cc0db90e517399ca9fa73a8ac1140db810d.tar.gz |
kbd_mode: try harder to find console device if -C TTY is not given
Was (under X):
$ ./busybox_old kbd_mode
kbd_mode: ioctl 0x4b44 failed: Inappropriate ioctl for device
Now:
$ ./busybox kbd_mode
The keyboard is in off mode
function old new delta
kbd_mode_main 166 174 +8
packed_usage 31782 31764 -18
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 8/-18) Total: -10 bytes
text data bss dec hex filename
915757 485 6880 923122 e15f2 busybox_old
915747 485 6880 923112 e15e8 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/get_console.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libbb/get_console.c b/libbb/get_console.c index 9b6407b..96b339c 100644 --- a/libbb/get_console.c +++ b/libbb/get_console.c @@ -64,7 +64,6 @@ int FAST_FUNC get_console_fd_or_die(void) } bb_error_msg_and_die("can't open console"); - /*return fd; - total failure */ } /* From <linux/vt.h> */ |