Make the locale stuff only do the getpid==1 check if BB_INIT is defined

This commit is contained in:
Eric Andersen 2001-05-13 00:33:16 +00:00
parent 1f3b9f297e
commit 4819c3d477
2 changed files with 10 additions and 2 deletions

View File

@ -82,9 +82,13 @@ int main(int argc, char **argv)
}
#endif
#ifdef BB_LOCALE_SUPPORT
#ifdef BB_LOCALE_SUPPORT
#ifdef BB_INIT
if(getpid()!=1) /* Do not set locale for `init' */
#endif
{
setlocale(LC_ALL, "");
}
#endif
run_applet_by_name(applet_name, argc, argv);

View File

@ -82,9 +82,13 @@ int main(int argc, char **argv)
}
#endif
#ifdef BB_LOCALE_SUPPORT
#ifdef BB_LOCALE_SUPPORT
#ifdef BB_INIT
if(getpid()!=1) /* Do not set locale for `init' */
#endif
{
setlocale(LC_ALL, "");
}
#endif
run_applet_by_name(applet_name, argc, argv);