Move special handling of DISPLAY environment variable from etc/config.fish to fish itself to reduce number of fork calls made at launch

This commit is contained in:
ridiculousfish
2012-03-06 15:51:48 -08:00
parent 36fe1e4a46
commit 68b93c624f
5 changed files with 29 additions and 25 deletions

View File

@@ -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 )
{