mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
exec(): Fix a stupid crash. Remove commented debug code that became invalidated.
This commit is contained in:
parent
db55176212
commit
be23c0755e
1 changed files with 2 additions and 5 deletions
7
exec.cpp
7
exec.cpp
|
@ -714,14 +714,11 @@ void exec(parser_t &parser, job_t *j)
|
|||
shared_ptr<io_pipe_t> pipe_write;
|
||||
shared_ptr<io_pipe_t> 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue