]> arthur.barton.de Git - netdata.git/commitdiff
added PYTHONUNBUFFERED=1 to the environment to make python plugins disable buffering...
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Thu, 16 Jun 2016 18:20:37 +0000 (21:20 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Thu, 16 Jun 2016 18:20:37 +0000 (21:20 +0300)
src/main.c

index b8d8391f4a637ac434a846e9c29672b4c3631b43..16c34c72147b355441a4583ca5467d9c411aeb4d 100644 (file)
@@ -437,7 +437,10 @@ int main(int argc, char **argv)
        setenv("NETDATA_HOST_PREFIX", config_get("global", "host access prefix" , "")         , 1);
        setenv("HOME"               , config_get("global", "home directory"     , CACHE_DIR)  , 1);
 
-       // avoid extended to stat(/etc/localtime)
+       // disable buffering for python plugins
+       setenv("PYTHONUNBUFFERED", "1", 1);
+
+       // avoid flood calls to stat(/etc/localtime)
        // http://stackoverflow.com/questions/4554271/how-to-avoid-excessive-stat-etc-localtime-calls-in-strftime-on-linux
        setenv("TZ", ":/etc/localtime", 0);