From 2e43a4d696346d8b31019d274bb26c56b2542d85 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 27 May 2015 13:57:41 +0100 Subject: [PATCH] Use common signal handler for SIGPIPE --- src/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 7b1f62f98..cbd9f8df2 100644 --- a/src/main.cc +++ b/src/main.cc @@ -279,6 +279,7 @@ void signal_handler(int signal) case SIGFPE: text = "SIGFPE"; break; case SIGQUIT: text = "SIGQUIT"; break; case SIGTERM: text = "SIGTERM"; break; + case SIGPIPE: text = "SIGPIPE"; break; } if (signal != SIGTERM) on_assert_failed(text); @@ -540,7 +541,7 @@ int main(int argc, char* argv[]) signal(SIGFPE, signal_handler); signal(SIGQUIT, signal_handler); signal(SIGTERM, signal_handler); - signal(SIGPIPE, SIG_IGN); + signal(SIGPIPE, signal_handler); Vector params; for (size_t i = 1; i < argc; ++i)