[PATCH] cgit: ignore SIGPIPE

John Keeping john at keeping.me.uk
Sun Oct 2 12:45:49 CEST 2016


On Sat, Oct 01, 2016 at 10:52:11PM +0200, Jason A. Donenfeld wrote:
> I see the utility of this with something like a highlight filter gone
> bad. But is it safe to do this in the context of an authentication
> filter? What's the failure behavior like once this patch is applied?

If we ignore SIGPIPE then we get an EPIPE error from write(2); in both
places that use write(2) we die if this happens.

So I think the only changes are our exit code and the fact that with
this patch we print an error message rather than exiting silently.


More information about the CGit mailing list