Re: [PATCH 2/2] Work around EMFILE when there are too many pack files
"Shawn O. Pearce" <spearce@spearce.org> writes:
Show 6 quoted lines
> @@ -876,7 +874,7 @@ static void prepare_packed_git_one(char *objdir, int local)
> sprintf(path, "%s/pack", objdir);
> len = strlen(path);
> dir = opendir(path);
> - while (!dir && errno == EMFILE && unuse_one_window(packed_git, -1))
> + while (!dir && errno == EMFILE && unuse_one_window(NULL, -1))
Show 6 quoted lines
> @@ -2314,7 +2325,7 @@ static int write_loose_object(const unsigned char *sha1, char *hdr, int hdrlen,
>
> filename = sha1_file_name(sha1);
> fd = create_tmpfile(tmpfile, sizeof(tmpfile), filename);
> - while (fd < 0 && errno == EMFILE && unuse_one_window(packed_git, -1))
> + while (fd < 0 && errno == EMFILE && unuse_one_window(NULL, -1))