From: David Kalnischkies Date: Sat, 26 Jun 2010 16:42:42 +0000 (+0200) Subject: make the MMap Grow Error a fatal one as while in theory the code should X-Git-Tag: 0.8.0~9^2~22^2~22 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/5afa55c6703a71a198aac950db30ffc6ca49f269 make the MMap Grow Error a fatal one as while in theory the code should never segfault it still tend to do it so better show it directly --- diff --git a/apt-pkg/contrib/mmap.cc b/apt-pkg/contrib/mmap.cc index d233e51bc..d71066243 100644 --- a/apt-pkg/contrib/mmap.cc +++ b/apt-pkg/contrib/mmap.cc @@ -297,7 +297,7 @@ unsigned long DynamicMMap::RawAllocate(unsigned long Size,unsigned long Aln) { if(!Grow()) { - _error->Error(_("Dynamic MMap ran out of room. Please increase the size " + _error->Fatal(_("Dynamic MMap ran out of room. Please increase the size " "of APT::Cache-Limit. Current value: %lu. (man 5 apt.conf)"), WorkSpace); return 0; }