From: Brandon Casey Date: Tue, 15 Jan 2008 20:27:45 GMT Subject: Re: git-commit fatal: Out of memory? mmap failed: Bad file descriptor Message-ID: <478D1741.8040807@nrlssc.navy.mil> In-Reply-To: <1200427202.5821.7.camel@gaara.boston.redhat.com> Kristian Høgsberg wrote: > There's four close(fd) calls in prepare_index() and they're all > incorrect. The open fd's are cleaned up in rollback_index_files() and > shouldn't be closed manually. The patch below gets rid of the extra > close() calls and should fix the problem. It does. Thanks. -brandon