summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2018-07-08 15:54:01 +1000
committerMaxime Coste <mawww@kakoune.org>2018-07-08 15:54:01 +1000
commitb6933a2bdbd9f9c161f29a24fe744aedf5de7dc6 (patch)
tree9410fceacd77984653f2f2440320a73f1542ef1f /src
parentf0b3925ba771f26f48507d4823c7f815e5c86b00 (diff)
Fix infinite loop on SIGHUP with the NCursesUI
Fixes #2126
Diffstat (limited to 'src')
-rw-r--r--src/ncurses_ui.cc1
1 files changed, 1 insertions, 0 deletions
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<Key> NCursesUI::get_next_key()
set_signal_handler(SIGWINCH, SIG_DFL);
set_signal_handler(SIGCONT, SIG_DFL);
m_window = nullptr;
+ m_stdin_watcher.disable();
return {};
}