wok-current annotate busybox/stuff/busybox-1.18-conspy.u @ rev 9870
xfce4-appfinder: Fix BD
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon May 16 22:50:57 2011 +0200 (2011-05-16) |
parents | |
children |
rev | line source |
---|---|
pascal@9195 | 1 Fix esc keys leak |
pascal@9195 | 2 --- busybox-1.18.0/miscutils/conspy.c |
pascal@9195 | 3 +++ busybox-1.18.0/miscutils/conspy.c |
pascal@9195 | 4 @@ -506,16 +506,17 @@ |
pascal@9195 | 5 } |
pascal@9195 | 6 } |
pascal@9195 | 7 poll_timeout_ms = 250; |
pascal@9195 | 8 + if (option_mask32 & FLAG(v)) continue; |
pascal@9195 | 9 |
pascal@9195 | 10 // Insert all keys pressed into the virtual console's input |
pascal@9195 | 11 // buffer. Don't do this if the virtual console is in scan |
pascal@9195 | 12 // code mode - giving ASCII characters to a program expecting |
pascal@9195 | 13 // scan codes will confuse it. |
pascal@9195 | 14 - if (!(option_mask32 & FLAG(v)) && G.escape_count == 0) { |
pascal@9195 | 15 + G.key_count += bytes_read; |
pascal@9195 | 16 + if (G.escape_count == 0) { |
pascal@9195 | 17 int handle, result; |
pascal@9195 | 18 long kbd_mode; |
pascal@9195 | 19 |
pascal@9195 | 20 - G.key_count += bytes_read; |
pascal@9195 | 21 handle = xopen(tty_name, O_WRONLY); |
pascal@9195 | 22 result = ioctl(handle, KDGKBMODE, &kbd_mode); |
pascal@9195 | 23 if (result >= 0) { |