Added SIGPIPE handing. (#127)

If you are grepping the debugging output and then hit ctrl-C, theres a good change hyperiond never cleans up properly.
This commit is contained in:
penfold42 2016-07-18 17:23:55 +10:00 committed by redPanther
parent 4e99a24568
commit 8f982f3225

View File

@ -50,6 +50,7 @@ int main(int argc, char** argv)
signal(SIGINT, signal_handler); signal(SIGINT, signal_handler);
signal(SIGTERM, signal_handler); signal(SIGTERM, signal_handler);
signal(SIGCHLD, signal_handler); signal(SIGCHLD, signal_handler);
signal(SIGPIPE, signal_handler);
// force the locale // force the locale
setlocale(LC_ALL, "C"); setlocale(LC_ALL, "C");