Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37769504
en ru br
Репозитории ALT

Группа :: Разработка/Прочее
Пакет: lua5.1

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: lua5.1-5.1.5-alt-at-ldo-abort.patch
Скачать


commit 6cb24c824a50a887e60b9ab7ab2d3c97dc605182
Author: Alexey Tourbin <at@altlinux.ru>
Date:   Mon Apr 16 22:46:47 2007 +0400
    ldo.c (luaD_throw): abort() instead of exit(EXIT_FAILURE)
diff --git a/doc/manual.html b/doc/manual.html
index 4e41683..b82f818 100644
--- a/doc/manual.html
+++ b/doc/manual.html
@@ -2552,7 +2552,7 @@ Sets a new panic function and returns the old one.
 <p>
 If an error happens outside any protected environment,
 Lua calls a <em>panic function</em>
-and then calls <code>exit(EXIT_FAILURE)</code>,
+and then calls <code>abort()</code>,
 thus exiting the host application.
 Your panic function can avoid this exit by
 never returning (e.g., doing a long jump).
diff --git a/src/ldo.c b/src/ldo.c
index ab86fb7..9b4a409 100644
--- a/src/ldo.c
+++ b/src/ldo.c
@@ -103,7 +103,7 @@ void luaD_throw (lua_State *L, int errcode) {
       lua_unlock(L);
       G(L)->panic(L);
     }
-    exit(EXIT_FAILURE);
+    abort();
   }
 }
 
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin