git-fetch-pack: close output fd after dup'ing the input
authorLinus Torvalds <torvalds@g5.osdl.org>
Thu, 14 Jul 2005 02:40:06 +0000 (19:40 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 14 Jul 2005 02:40:06 +0000 (19:40 -0700)
commit85c414b5e05d2087e779cdd3587d6ad4cae56e72
tree7a7d0acbdfa49ef53a77d09bcf965196bed950e9
parent2386d65822c912f0889ac600b1698b0659190133
git-fetch-pack: close output fd after dup'ing the input

With the socket case, the input and output fd's might end up being the same,
so we want to dup the other before we close either of them.
fetch-pack.c