aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec.cpp b/exec.cpp
index f96fcf3f..a9fff767 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -1238,7 +1238,8 @@ void exec( parser_t &parser, job_t *j )
const char *actual_cmd = actual_cmd_str.c_str();
const wchar_t *reader_current_filename();
- printf("forking for '%s' in '%ls'\n", actual_cmd, reader_current_filename());
+ if (g_log_forks)
+ printf("forking for '%s' in '%ls'\n", actual_cmd, reader_current_filename());
pid = execute_fork(true /* must drain threads */);
if( pid == 0 )
{