Re: git-commit fatal: Out of memory? mmap failed: Bad file descriptor
- From
Brandon Casey <casey@nrlssc.navy.mil>
- Date
- Jan 15, 2008, 20:39 UTC
- Message-ID
- <478D19F7.9020308@nrlssc.navy.mil>
- In-Reply-To
- <1200427202.5821.7.camel@gaara.boston.redhat.com>
Kristian Høgsberg wrote:
> To my defense, the lockfile API is used a little inconsitently in git. > Many places in git does a close(fd) and the call commit_locked_index(), > which will close the fd again.
I bet they did that so that the return status of close() could be checked since commit_lock_file() doesn't currently check it.
-brandon