From bc6cc4c10566f140c6c0575da8153c58fd8772c4 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Thu, 5 May 2016 20:05:45 -0700 Subject: fix fork debug printf() calls The fork (create new process) related debugging messages rely on an undocumented env var and use `printf()` rather than `debug()`. There are also errors in how the fork count is tracked that this fixes. Fixes #2995 --- src/env.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/env.cpp') diff --git a/src/env.cpp b/src/env.cpp index 6d5e2ab8..12eef036 100644 --- a/src/env.cpp +++ b/src/env.cpp @@ -46,7 +46,6 @@ /// At init, we read all the environment variables from this array. extern char **environ; -bool g_log_forks = false; bool g_use_posix_spawn = false; // will usually be set to true /// Struct representing one level in the function variable stack. @@ -392,10 +391,6 @@ void env_init(const struct config_paths_t *paths /* or NULL */) { s_universal_variables = new env_universal_t(L""); s_universal_variables->load(); - // 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(log_forks); - // Set g_use_posix_spawn. Default to true. env_var_t use_posix_spawn = env_get_string(L"fish_use_posix_spawn"); g_use_posix_spawn = -- cgit v1.2.3