Skip to content

Commit

Permalink
Merge branch 'js/maint-send-pack-stateless-rpc-deadlock-fix'
Browse files Browse the repository at this point in the history
* js/maint-send-pack-stateless-rpc-deadlock-fix:
  sideband_demux(): fix decl-after-stmt
  • Loading branch information
Junio C Hamano committed May 20, 2011
2 parents 6699c95 + 1c1f046 commit 5c359a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/send-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,11 +228,11 @@ static void print_helper_status(struct ref *ref)

static int sideband_demux(int in, int out, void *data)
{
int *fd = data;
int *fd = data, ret;
#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;
}
Expand Down

0 comments on commit 5c359a6

Please sign in to comment.