Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
send-pack: avoid deadlock on git:// push with failed pack-objects
[gitweb.git]
/
builtin-send-pack.c
diff --git
a/builtin-send-pack.c
b/builtin-send-pack.c
index dfd3d1105d5de43c96007624170c70a4d8678064..eef19cb60a6096445f70b53457f095450309a102 100644
(file)
--- a/
builtin-send-pack.c
+++ b/
builtin-send-pack.c
@@
-520,6
+520,8
@@
int send_pack(struct send_pack_args *args,
ref->status = REF_STATUS_NONE;
if (args->stateless_rpc)
close(out);
+ if (git_connection_is_socket(conn))
+ shutdown(fd[0], SHUT_WR);
if (use_sideband)
finish_async(&demux);
return -1;