From 8f982f32257b7257bd107e75441b98aa2a3eaecf Mon Sep 17 00:00:00 2001 From: penfold42 Date: Mon, 18 Jul 2016 17:23:55 +1000 Subject: [PATCH] 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. --- src/hyperiond/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hyperiond/main.cpp b/src/hyperiond/main.cpp index 038e135b..a65e4fe6 100644 --- a/src/hyperiond/main.cpp +++ b/src/hyperiond/main.cpp @@ -50,6 +50,7 @@ int main(int argc, char** argv) signal(SIGINT, signal_handler); signal(SIGTERM, signal_handler); signal(SIGCHLD, signal_handler); + signal(SIGPIPE, signal_handler); // force the locale setlocale(LC_ALL, "C");