diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-03-15 22:22:23 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-03-15 22:22:23 +0100 |
commit | 674ef90904fe651ecacafc4211a8a24014160207 (patch) | |
tree | da07f0f6663799582fffd716e3e5b5f094a6b390 /fast-import.c | |
parent | Merge branch 'jc/checkout-orphan-warning' (diff) | |
parent | sha1_file.c: Don't retain open fds on small packs (diff) | |
download | git-674ef90904fe651ecacafc4211a8a24014160207.tar.xz git-674ef90904fe651ecacafc4211a8a24014160207.zip |
Merge branch 'sp/maint-fd-limit'
* sp/maint-fd-limit:
sha1_file.c: Don't retain open fds on small packs
mingw: add minimum getrlimit() compatibility stub
Limit file descriptors used by packs
Diffstat (limited to 'fast-import.c')
-rw-r--r-- | fast-import.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fast-import.c b/fast-import.c index e1268b8cb4..e24ee2c63d 100644 --- a/fast-import.c +++ b/fast-import.c @@ -877,6 +877,7 @@ static void start_packfile(void) p = xcalloc(1, sizeof(*p) + strlen(tmpfile) + 2); strcpy(p->pack_name, tmpfile); p->pack_fd = pack_fd; + p->do_not_close = 1; pack_file = sha1fd(pack_fd, p->pack_name); hdr.hdr_signature = htonl(PACK_SIGNATURE); |