Просмотр исходного кода

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

David Kalnischkies лет назад: 16
Родитель
Сommit
5afa55c670
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apt-pkg/contrib/mmap.cc

+ 1 - 1
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;
       }