Fix infinite loop on SIGHUP with the NCursesUI

Fixes #2126
This commit is contained in:
Maxime Coste 2018-07-08 15:54:01 +10:00
parent f0b3925ba7
commit b6933a2bdb

View File

@ -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 {};
}