aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-15 20:24:25 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-03-15 20:24:25 -0700
commit5c54ef7b0dceee99f180131a59ae19e649b31e84 (patch)
tree6c21fa72998791c194962845c9c5280dfc514036 /exec.cpp
parent1fa9167f25d24b9c067ecb67c688adf40e418c00 (diff)
parent73c2846d64216b42064bc4a42f6e779831a8e9e6 (diff)
Merge branch 'master' into parser_cleanup
Diffstat (limited to 'exec.cpp')
-rw-r--r--exec.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/exec.cpp b/exec.cpp
index 832c8884..c08933a1 100644
--- a/exec.cpp
+++ b/exec.cpp
@@ -929,7 +929,7 @@ void exec_job(parser_t &parser, job_t *j)
if (p->next)
{
// Be careful to handle failure, e.g. too many open fds
- block_output_io_buffer.reset(io_buffer_t::create(false /* = not input */, STDOUT_FILENO));
+ block_output_io_buffer.reset(io_buffer_t::create(STDOUT_FILENO));
if (block_output_io_buffer.get() == NULL)
{
exec_error = true;
@@ -958,7 +958,7 @@ void exec_job(parser_t &parser, job_t *j)
{
if (p->next)
{
- block_output_io_buffer.reset(io_buffer_t::create(0));
+ block_output_io_buffer.reset(io_buffer_t::create(STDOUT_FILENO));
if (block_output_io_buffer.get() == NULL)
{
/* We failed (e.g. no more fds could be created). */
@@ -1606,7 +1606,7 @@ static int exec_subshell_internal(const wcstring &cmd, wcstring_list_t *lst, boo
int subcommand_status = -1; //assume the worst
// IO buffer creation may fail (e.g. if we have too many open files to make a pipe), so this may be null
- const shared_ptr<io_buffer_t> io_buffer(io_buffer_t::create(0));
+ const shared_ptr<io_buffer_t> io_buffer(io_buffer_t::create(STDOUT_FILENO));
if (io_buffer.get() != NULL)
{
parser_t &parser = parser_t::principal_parser();