зеркало из https://github.com/microsoft/git.git
xmmap(): drop "Out of memory?"
We show that message with die_errno(), but the OS is ought to know why mmap(2) failed much better than we do. There is no reason for us to say "Out of memory?" here. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
0e8771f198
Коммит
9ca0aaf6de
|
@ -728,7 +728,7 @@ void *xmmap(void *start, size_t length,
|
||||||
{
|
{
|
||||||
void *ret = xmmap_gently(start, length, prot, flags, fd, offset);
|
void *ret = xmmap_gently(start, length, prot, flags, fd, offset);
|
||||||
if (ret == MAP_FAILED)
|
if (ret == MAP_FAILED)
|
||||||
die_errno("Out of memory? mmap failed");
|
die_errno("mmap failed");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче