aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-06 15:51:48 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-03-06 15:52:16 -0800
commit68b93c624f51da262dc90d5566c666e59c186840 (patch)
treef6ce97beee067f6ce30550dd9cda9ded8642d1eb /exec.cpp
parent36fe1e4a463560672cbf8cbfbe45b26fcf2a2377 (diff)
Move special handling of DISPLAY environment variable from etc/config.fish to fish itself to reduce number of fork calls made at launch
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 )
{