1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Force C locale

As we need to use mlockall() enforce "C" locales for dmeventd.
This commit is contained in:
Zdenek Kabelac 2010-03-30 14:40:30 +00:00
parent 3e5c09fc04
commit 985c7ae39c

View File

@ -1698,6 +1698,13 @@ int main(int argc, char *argv[])
}
}
/*
* Switch to C locale to avoid reading large locale-archive file
* used by some glibc (on some distributions it takes over 100MB).
* Daemon currently needs to use mlockall().
*/
setenv("LANG", "C", 1);
if (!_debug)
_daemonize();