From b6933a2bdbd9f9c161f29a24fe744aedf5de7dc6 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sun, 8 Jul 2018 15:54:01 +1000 Subject: [PATCH] Fix infinite loop on SIGHUP with the NCursesUI Fixes #2126 --- src/ncurses_ui.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ncurses_ui.cc b/src/ncurses_ui.cc index a4d4ee71..93fbf559 100644 --- a/src/ncurses_ui.cc +++ b/src/ncurses_ui.cc @@ -531,6 +531,7 @@ Optional NCursesUI::get_next_key() set_signal_handler(SIGWINCH, SIG_DFL); set_signal_handler(SIGCONT, SIG_DFL); m_window = nullptr; + m_stdin_watcher.disable(); return {}; }