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/fish.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/fish.cpp') diff --git a/src/fish.cpp b/src/fish.cpp index dcad6c8b..d8192c86 100644 --- a/src/fish.cpp +++ b/src/fish.cpp @@ -440,8 +440,6 @@ int main(int argc, char **argv) { parser_t &parser = parser_t::principal_parser(); - if (g_log_forks) printf("%d: g_fork_count: %d\n", __LINE__, g_fork_count); - const io_chain_t empty_ios; if (read_init(paths)) { // Stomp the exit status of any initialization commands (issue #635). @@ -515,9 +513,6 @@ int main(int argc, char **argv) { builtin_destroy(); reader_destroy(); event_destroy(); - - if (g_log_forks) printf("%d: g_fork_count: %d\n", __LINE__, g_fork_count); - exit_without_destructors(exit_status); return EXIT_FAILURE; // above line should always exit } -- cgit v1.2.3