filter_buffer_or_fd(): ignore EPIPE
commit0c4dd67a048b39470b9b95912e4912fecc405a85
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 May 2015 18:08:23 +0000 (19 11:08 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 20 May 2015 17:19:12 +0000 (20 10:19 -0700)
treeb785fea2d6cfedd40a3e9205dd22adf05d474944
parent00b7cbfcb36b6679c64ad0566c0fc251f7e979fe
filter_buffer_or_fd(): ignore EPIPE

We are explicitly ignoring SIGPIPE, as we fully expect that the
filter program may not read our output fully.  Ignore EPIPE that
may come from writing to it as well.

A new test was stolen from Jeff's suggestion.

Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c
t/t0021-conversion.sh