X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=receive-pack.c;h=f83ae87e150ff93728da989f1d35ce0ad7c10f60;hb=24b6177e0261efba063c0b83ae0cdc5993945da9;hp=c90ec7dde28ec135f0c90e6c731b730ad4a1f7a8;hpb=5c09f321729c2f1ce6718a0cfefa5e647fa808fc;p=git.git diff --git a/receive-pack.c b/receive-pack.c index c90ec7dde..f83ae87e1 100644 --- a/receive-pack.c +++ b/receive-pack.c @@ -132,6 +132,7 @@ static int run_hook(const char *hook_name) break; } } + close(proc.in); return hook_status(finish_command(&proc), hook_name); } @@ -414,6 +415,7 @@ static const char *unpack(void) if (start_command(&ip)) return "index-pack fork failed"; pack_lockfile = index_pack_lockfile(ip.out); + close(ip.out); status = finish_command(&ip); if (!status) { reprepare_packed_git();