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.
This commit is contained in:
Cheer Xiao 2013-01-07 22:02:51 +08:00 committed by ridiculousfish
parent b2abd963f0
commit ff49792f44

View file

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