aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-02-27 12:03:30 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2013-02-28 10:25:32 -0800
commit94b1d58cc28800cbc7f00febf499a1d9c9928a21 (patch)
tree8dc05506b3bc27df1178f21230519466613f8ea0 /exec.cpp
parentc55cbd3f2f003ea6e36727f8b985e880d6aded85 (diff)
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.cpp b/exec.cpp
index 77c890bf..7a8d92a6 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -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)