mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
Clean up initialization of pipe_{read,write} in exec() a bit.
This commit is contained in:
parent
50c04752f5
commit
d6b5558cf2
1 changed files with 6 additions and 7 deletions
13
exec.cpp
13
exec.cpp
|
@ -646,16 +646,15 @@ void exec(parser_t &parser, job_t *j)
|
|||
|
||||
}
|
||||
|
||||
pipe_read.fd=0;
|
||||
pipe_write.fd=1;
|
||||
pipe_read.io_mode=IO_PIPE;
|
||||
pipe_read.param1.pipe_fd[0] = -1;
|
||||
pipe_read.param1.pipe_fd[1] = -1;
|
||||
pipe_read.fd = 0;
|
||||
pipe_read.io_mode = IO_PIPE;
|
||||
pipe_read.is_input = 1;
|
||||
pipe_read.param1.pipe_fd[0] = pipe_read.param1.pipe_fd[1] = -1;
|
||||
|
||||
pipe_write.io_mode=IO_PIPE;
|
||||
pipe_write.fd = 1;
|
||||
pipe_write.io_mode = IO_PIPE;
|
||||
pipe_write.is_input = 0;
|
||||
pipe_write.param1.pipe_fd[0]=pipe_write.param1.pipe_fd[1]=-1;
|
||||
pipe_write.param1.pipe_fd[0] = pipe_write.param1.pipe_fd[1] = -1;
|
||||
|
||||
j->io.push_back(&pipe_write);
|
||||
|
||||
|
|
Loading…
Reference in a new issue