Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
xmmap(): drop "Out of memory?"
author
Junio C Hamano
<gitster@pobox.com>
Wed, 27 May 2015 20:30:29 +0000
(13:30 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 28 May 2015 18:35:25 +0000
(11:35 -0700)
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>
sha1_file.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
0e8771f
)
diff --git
a/sha1_file.c
b/sha1_file.c
index ca491ab8bb8d2f28c5d88e52c54f50bfda4123ff..1457069a1a1104ebdee910c0df09e48a132608e8 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-728,7
+728,7
@@
void *xmmap(void *start, size_t length,
{
void *ret = xmmap_gently(start, length, prot, flags, fd, offset);
if (ret == MAP_FAILED)
- die_errno("
Out of memory?
mmap failed");
+ die_errno("mmap failed");
return ret;
}