git-svn: ignore SIGPIPE
commit6ade9bdadaf61565ee4e2ab47f66baaf41a20ecf
authorRoman Kagan <rkagan@mail.ru>
Mon, 2 Apr 2012 13:52:34 +0000 (2 17:52 +0400)
committerEric Wong <normalperson@yhbt.net>
Tue, 24 Apr 2012 09:42:08 +0000 (24 09:42 +0000)
tree0e55745b94a6b25e55b8aa9059538f5a651048d5
parent037a98cd3f3efe85c6f56c4338002e4b2c7afa09
git-svn: ignore SIGPIPE

In HTTP with keep-alive it's not uncommon for the client to notice that
the server decided to stop maintaining the current connection only when
sending a new request.  This naturally results in -EPIPE and possibly
SIGPIPE.

The subversion library itself makes no provision for SIGPIPE.  Some
combinations of the underlying libraries do (typically SIG_IGN-ing it),
some don't.

Presumably for that reason all subversion commands set SIGPIPE to
SIG_IGN early in their main()-s.

So should we.

This, together with the previous patch, fixes the notorious "git-svn
died of signal 13" problem (see e.g.
http://thread.gmane.org/gmane.comp.version-control.git/134936).

Signed-off-by: Roman Kagan <rkagan@mail.ru>
Acked-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl