diff options
author | 2013-02-27 12:03:30 -0800 | |
---|---|---|
committer | 2013-02-28 10:25:32 -0800 | |
commit | 94b1d58cc28800cbc7f00febf499a1d9c9928a21 (patch) | |
tree | 8dc05506b3bc27df1178f21230519466613f8ea0 /exec.cpp | |
parent | c55cbd3f2f003ea6e36727f8b985e880d6aded85 (diff) |
Additional changes related to https://github.com/fish-shell/fish-shell/pull/592
Diffstat (limited to 'exec.cpp')
-rw-r--r-- | exec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1176,7 +1176,7 @@ void exec(parser_t &parser, job_t *j) io_buffer->out_buffer_append(res.c_str(), res.size()); skip_fork = true; } - + /* PCA for some reason, fish forks a lot, even for basic builtins like echo just to write out their buffers. I'm certain a lot of this is unnecessary, but I am not sure exactly when. If j->io is NULL, then it means there's no pipes or anything, so we can certainly just write out our data. Beyond that, we may be able to do the same if io_get returns 0 for STDOUT_FILENO and STDERR_FILENO. */ if (! skip_fork && stdout_io.get() == NULL && stderr_io.get() == NULL) |