aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/env.cpp
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-05-05 20:05:45 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-05-05 20:22:20 -0700
commitbc6cc4c10566f140c6c0575da8153c58fd8772c4 (patch)
treeea49017b4de97250be286e93a3b9a26e9d6ee5f2 /src/env.cpp
parent4481692037aba4ef3af1f69c43a8e1b4e1f531f3 (diff)
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
Diffstat (limited to 'src/env.cpp')
-rw-r--r--src/env.cpp5
1 files changed, 0 insertions, 5 deletions
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<bool>(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 =