[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Do not print out traceback when localedef is not present



This skips the atexit handlers we have in the failed forked copy
to prevent confusing traceback to be printed out.

This shouldn't ever happen in proper install image, but we have
seen it happen in one mangled test compose.
---
 loader/lang.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/loader/lang.c b/loader/lang.c
index f3e00df..1c7a68c 100644
--- a/loader/lang.c
+++ b/loader/lang.c
@@ -299,7 +299,7 @@ static int setupLanguage(int choice, int forced) {
               "-i", locale_p,
               "-f", (locale_charset) ? locale_charset : "UTF-8",
               languages[choice].lc_all, NULL);
-        exit(254);
+        _exit(254);
     }
 
     if (localedef_pid < 0) logMessage(ERROR, "failed forking localedef for %s", languages[choice].lc_all);
-- 
1.7.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]