Allow g_log_forks to be set by fish_log_forks env var

This commit is contained in:
ridiculousfish 2012-03-09 11:56:33 -08:00
parent 44f3f51e0d
commit afd78f3f0b

View file

@ -667,10 +667,12 @@ void env_init()
ENV_GLOBAL | ENV_EXPORT ); ENV_GLOBAL | ENV_EXPORT );
} }
/* /* Set correct defaults for e.g. USER and HOME variables */
Set correct defaults for e.g. USER and HOME variables
*/
env_set_defaults(); env_set_defaults();
/* Set g_log_forks */
env_var_t log_forks = env_get_string(L"fish_log_forks");
g_log_forks = ! log_forks.missing_or_empty() && from_string<bool>(log_forks);
} }
void env_destroy() void env_destroy()