From be23c0755e898ee3709c4635885342a9c1f77061 Mon Sep 17 00:00:00 2001 From: Cheer Xiao Date: Thu, 7 Feb 2013 20:39:08 +0800 Subject: [PATCH] exec(): Fix a stupid crash. Remove commented debug code that became invalidated. --- exec.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/exec.cpp b/exec.cpp index 9d9b07937..f05bef7a9 100644 --- a/exec.cpp +++ b/exec.cpp @@ -714,14 +714,11 @@ void exec(parser_t &parser, job_t *j) shared_ptr pipe_write; shared_ptr pipe_read; - /* Record the current read in pipe_read */ - pipe_read->pipe_fd[0] = pipe_current_read; - -// debug( 0, L"Pipe created from fd %d to fd %d", pipe_write->fd, pipe_read->fd ); - if (p != j->first_process) { pipe_read.reset(new io_pipe_t(p->pipe_read_fd, true)); + /* Record the current read in pipe_read */ + pipe_read->pipe_fd[0] = pipe_current_read; j->io.push_back(pipe_read); }