author | Junio C Hamano <gitster@pobox.com> | |
Tue, 17 May 2011 00:01:03 +0000 (17:01 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 17 May 2011 00:01:03 +0000 (17:01 -0700) |
* js/maint-1.6.6-send-pack-stateless-rpc-deadlock-fix:
sideband_demux(): fix decl-after-stmt
sideband_demux(): fix decl-after-stmt
1 | 2 | |||
---|---|---|---|---|
builtin-send-pack.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc builtin-send-pack.c
index aef47f8611a6595d93e41902f84698a607fac616,dfd3d1105d5de43c96007624170c70a4d8678064..fb110eb43000a6df87407e2e626591d0444cee66
--- 1/builtin-send-pack.c
--- 2/builtin-send-pack.c
+++ b/builtin-send-pack.c
static int sideband_demux(int in, int out, void *data)
{
- int *fd = data;
+ int *fd = data, ret;
-#ifndef WIN32
+#ifdef NO_PTHREADS
close(fd[1]);
#endif
- int ret = recv_sideband("send-pack", fd[0], out);
+ ret = recv_sideband("send-pack", fd[0], out);
close(out);
return ret;
}