From ff49792f44196f41156547efdf615bb2b52fcaaa Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Mon, 7 Jan 2013 22:02:51 +0800 Subject: [PATCH] exec.cpp:exec: Don't remove block_io elements from j->io When dulicate_prepend prepend copies of block_io elements to j->io, the removing simply does nothing. Now that the same pointers are prepended to j->io, don't remove them. --- exec.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/exec.cpp b/exec.cpp index 6794fb54b..bc5980448 100644 --- a/exec.cpp +++ b/exec.cpp @@ -1394,11 +1394,6 @@ void exec(parser_t &parser, job_t *j) io_remove(j->io, &pipe_read); - for (io_chain_t::const_iterator iter = parser.block_io.begin(); iter != parser.block_io.end(); iter++) - { - io_remove(j->io, *iter); - } - job_set_flag(j, JOB_CONSTRUCTED, 1); if (!job_get_flag(j, JOB_FOREGROUND))