From 47a628bcf24d0e2ee14c977b639e75f161eba33a Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Tue, 10 Feb 2009 12:02:42 +0100 Subject: [PATCH] Ignore broken pipe signals Can be caused if a forked git process exits with an error. Tig should detect this by checking the exit code of the child using the return value done_io(). --- tig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tig.c b/tig.c index a0d4df4..d2a9fe8 100644 --- a/tig.c +++ b/tig.c @@ -6990,6 +6990,7 @@ main(int argc, const char *argv[]) size_t i; signal(SIGINT, quit); + signal(SIGPIPE, SIG_IGN); if (setlocale(LC_ALL, "")) { char *codeset = nl_langinfo(CODESET); -- 2.32.0.93.g670b81a890