From: Jonas Fonseca Date: Tue, 10 Feb 2009 11:02:42 +0000 (+0100) Subject: Ignore broken pipe signals X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=47a628bcf24d0e2ee14c977b639e75f161eba33a;p=tig.git 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(). --- 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);