mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-24 09:21:16 -03:00
fish_key_reader: stop looping on SIGHUP
Using the machinery in reader.cpp rather than going back to
intalling our own handlerss
(see 89644911a1)
Fixes #9309
This commit is contained in:
@@ -227,7 +227,7 @@ static void process_input(bool continuous_mode, bool verbose) {
|
||||
std::vector<wchar_t> bind_chars;
|
||||
|
||||
std::fwprintf(stderr, L"Press a key:\n");
|
||||
for (;;) {
|
||||
while (!check_exit_loop_maybe_warning(nullptr)) {
|
||||
maybe_t<char_event_t> evt{};
|
||||
if (reader_test_and_clear_interrupted()) {
|
||||
evt = char_event_t{shell_modes.c_cc[VINTR]};
|
||||
|
||||
Reference in New Issue
Block a user