mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-31 14:50:37 +03:00
Force C locale
As we need to use mlockall() enforce "C" locales for dmeventd.
This commit is contained in:
parent
f1fee292e4
commit
5361b5de37
@ -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…
x
Reference in New Issue
Block a user