diff options
author | Kurtis Rader <krader@skepticism.us> | 2016-05-05 20:05:45 -0700 |
---|---|---|
committer | Kurtis Rader <krader@skepticism.us> | 2016-05-05 20:22:20 -0700 |
commit | bc6cc4c10566f140c6c0575da8153c58fd8772c4 (patch) | |
tree | ea49017b4de97250be286e93a3b9a26e9d6ee5f2 /src/fish.cpp | |
parent | 4481692037aba4ef3af1f69c43a8e1b4e1f531f3 (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/fish.cpp')
-rw-r--r-- | src/fish.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
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 } |