* js/maint-1.6.6-send-pack-stateless-rpc-deadlock-fix:
send-pack: avoid deadlock when pack-object dies early
Evil merge to adjust the way the use of pthreads in sideband-demultiplexor
was decided (earlier it was "if we are not on Windows", now it is "if we
are not using pthreads").
static int sideband_demux(int in, int out, void *data)
{
int *fd = data;
-#ifndef WIN32
++#ifdef NO_PTHREADS
+ close(fd[1]);
+ #endif
int ret = recv_sideband("send-pack", fd[0], out);
close(out);
return ret;