]> sourceware.org Git - lvm2.git/commitdiff
Force C locale
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 30 Mar 2010 14:40:30 +0000 (14:40 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 30 Mar 2010 14:40:30 +0000 (14:40 +0000)
As we need to use mlockall() enforce "C" locales for dmeventd.

daemons/dmeventd/dmeventd.c

index f4b664b2d17762e51ffb4581c534b98aad5f083f..96830ea10ef004edb8efced0fea1d8b471022c36 100644 (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();
 
This page took 0.039221 seconds and 5 git commands to generate.