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:
parent
3e5c09fc04
commit
985c7ae39c
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user