From: Shawn O. Pearce Date: Mon, 1 Nov 2010 22:54:21 +0000 (-0700) Subject: Work around EMFILE when there are too many pack files X-Git-Tag: v1.7.4-rc0~92^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/f2e872aa5eeb74f429632e14d0f7fa2ed828b65a?ds=inline;hp=f2e872aa5eeb74f429632e14d0f7fa2ed828b65a Work around EMFILE when there are too many pack files When opening any files in the object database, release unused pack windows if the open(2) syscall fails due to EMFILE (too many open files in this process). This allows Git to degrade gracefully on a repository with thousands of pack files, and a commit stored in a loose object in the middle of the history. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano ---