diff options
author | Roman Kagan <rkagan@mail.ru> | 2012-04-02 17:52:34 +0400 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-04-24 09:42:08 +0000 |
commit | 6ade9bdadaf61565ee4e2ab47f66baaf41a20ecf (patch) | |
tree | 0e55745b94a6b25e55b8aa9059538f5a651048d5 /blob.h | |
parent | git-svn: use POSIX::sigprocmask to block signals (diff) | |
download | tgif-6ade9bdadaf61565ee4e2ab47f66baaf41a20ecf.tar.xz |
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>
Diffstat (limited to 'blob.h')
0 files changed, 0 insertions, 0 deletions