1
0
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:
Zdenek Kabelac 2010-03-30 14:40:30 +00:00
parent f1fee292e4
commit 5361b5de37

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();