Tweak handling of SIGINT

This commit is contained in:
Maxime Coste 2015-10-08 20:19:14 +01:00
parent 473196e18d
commit 0d8b9c6677
2 changed files with 1 additions and 2 deletions

View File

@ -648,6 +648,7 @@ int main(int argc, char* argv[])
signal(SIGQUIT, signal_handler);
signal(SIGTERM, signal_handler);
signal(SIGPIPE, SIG_IGN);
signal(SIGINT, [](int){});
signal(SIGCHLD, [](int){});
Vector<String> params;

View File

@ -260,7 +260,6 @@ NCursesUI::NCursesUI()
signal(SIGWINCH, on_term_resize);
signal(SIGCONT, on_term_resize);
signal(SIGINT, [](int){});
check_resize(true);
@ -276,7 +275,6 @@ NCursesUI::~NCursesUI()
restore_colors();
signal(SIGWINCH, SIG_DFL);
signal(SIGCONT, SIG_DFL);
signal(SIGINT, SIG_DFL);
}
void NCursesUI::Window::create(const CharCoord& p, const CharCoord& s)