git-upload-pack: make sure we close unused pipe ends
[gitweb.git] / upload-pack.c
index 3648aae1a777aec4bba77b40b9cf6da484190441..044c33b09091eefff4f6035286c0b4bd4adf155e 100644 (file)
@@ -119,6 +119,7 @@ static void create_pack_file(void)
                int i;
                struct rev_info revs;
 
+               close(lp_pipe[0]);
                pack_pipe = fdopen(lp_pipe[1], "w");
 
                if (create_full_pack)