From 336df382379dbf9e09d68fa1abd00ffb3419a8a1 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 28 May 2015 13:57:22 +0100 Subject: [PATCH] Go back to ignoring SIGPIPE We do not want to exit when a shell command closes stdin while we are piping data to it. --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 6e389c677..2cda1c5a5 100644 --- a/src/main.cc +++ b/src/main.cc @@ -545,7 +545,7 @@ int main(int argc, char* argv[]) signal(SIGFPE, signal_handler); signal(SIGQUIT, signal_handler); signal(SIGTERM, signal_handler); - signal(SIGPIPE, signal_handler); + signal(SIGPIPE, SIG_IGN); Vector params; for (size_t i = 1; i < argc; ++i)