Files
serenity/Userland/Utilities
NoobZang 1e69af3b17 top: Fix refresh hangs by correctly configuring non-blocking TTY
Setting O_NONBLOCK via fcntl is not sufficient for TTYs in
non-canonical mode. A subsequent tcsetattr call would override this,
as the default VMIN and VTIME settings cause the driver to block.

Explicitly set VMIN and VTIME to 0 to ensure a true non-blocking read.

Also, apply these TTY settings to STDIN_FILENO instead of STDOUT_FILENO.
This is semantically more correct as we are configuring input behavior.

Fixes #26166.
2026-01-23 21:05:33 +01:00
..
2024-02-08 07:11:44 -07:00
2023-02-13 00:50:07 +00:00
2023-02-13 00:50:07 +00:00
2025-10-10 00:02:50 +02:00
2022-01-14 19:42:19 +02:00
2025-10-10 00:02:50 +02:00
2024-09-08 18:27:55 -04:00
2024-11-18 13:21:10 -05:00
2024-01-13 19:01:07 -07:00
2025-03-07 20:22:16 -05:00
2025-10-10 00:02:50 +02:00
2024-07-06 21:42:32 +02:00
2025-05-20 11:30:08 -04:00
2024-11-29 16:03:30 -05:00
2023-07-05 08:34:51 +02:00
2023-02-13 00:50:07 +00:00
2024-11-17 10:18:36 -05:00
2023-02-13 00:50:07 +00:00
2025-07-14 20:41:03 -04:00
2022-03-22 11:39:20 +01:00
2025-11-29 11:36:10 +01:00
2024-05-31 13:49:34 +01:00
2022-02-01 04:58:24 +00:00
2024-04-05 15:30:41 -06:00
2022-04-01 21:24:45 +01:00
2022-03-22 11:39:20 +01:00
2022-03-29 21:28:29 -07:00
2021-11-30 23:34:40 +01:00
2024-11-02 12:48:18 -04:00