Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
builtin/upload-archive.c: use error_errno()
[gitweb.git]
/
write_or_die.c
diff --git
a/write_or_die.c
b/write_or_die.c
index e7afe7a295e586d58313e82e87b22de347aef7a1..49e80aa222132c3c151b79bd37749d92a12f745a 100644
(file)
--- a/
write_or_die.c
+++ b/
write_or_die.c
@@
-1,8
+1,12
@@
#include "cache.h"
+#include "run-command.h"
static void check_pipe(int err)
{
if (err == EPIPE) {
+ if (in_async())
+ async_exit(141);
+
signal(SIGPIPE, SIG_DFL);
raise(SIGPIPE);
/* Should never happen, but just in case... */