From: Junio C Hamano <hidden> Date: 2016-06-15 22:54:25
Nguyễn Thái Ngọc Duy [off-list ref] writes:
While at it, move die_errno() next to xmmap() call because it's the
mmap's error code that we care about. Otherwise if close(fd); fails,
it could overwrite mmap's errno.