Closing Terminal running editor or libui application upsets input
When I run 'edit' or a libui application in console mode (-d cons@
) and close the terminal using the close button, the mouse goes haywire and i8042 reports buffer overruns in the kernel log.
Change History
(4)
Summary: |
After closing Terminal running editor or libui application upsets input → Closing Terminal running editor or libui application upsets input
|
Owner: |
set to Jiri Svoboda
|
Status: |
new → accepted
|
Milestone: |
→ 0.9.2
|
Resolution: |
→ fixed
|
Status: |
accepted → closed
|
Milestone: |
0.9.2 → 0.11.1
|
The root cause: some applications would drop into an infinite loop if their console connection was broken. This was either because the return value from console_get_event() was not handled properly, or, they were using console_get_event_timeout() for which there is no good way to distinguish between timeout and other error.
This is probably not a new issue. It is possible though, that it was not noticed because it didn't use to disrupt the system's operation. It either surfaced with the new display server or it only happens with i8042 (as opposed to USB hid).
Fixed with this commit.