run-command: don't warn on SIGPIPE deaths
[gitweb.git] / run-command.c
index 0d01671c1ff26ccfe04481713a4071c321d8ab11..a573ab88d0dc731a89a84a1708d0638bdfa00549 100644 (file)
@@ -236,7 +236,7 @@ static int wait_or_whine(pid_t pid, const char *argv0)
                error("waitpid is confused (%s)", argv0);
        } else if (WIFSIGNALED(status)) {
                code = WTERMSIG(status);
-               if (code != SIGINT && code != SIGQUIT)
+               if (code != SIGINT && code != SIGQUIT && code != SIGPIPE)
                        error("%s died of signal %d", argv0, code);
                /*
                 * This return value is chosen so that code & 0xff