diff options
author | 2013-01-16 11:55:57 +0800 | |
---|---|---|
committer | 2013-01-17 15:55:06 +0800 | |
commit | 57ef5289feb4f8551031cc1077df7c33be2180bb (patch) | |
tree | 4c42b39e0599adfeda8d33a494ddf7e2b06a63b5 /postfork.cpp | |
parent | a63c0311bbd7ce2831a7b130f07b3a703d51201b (diff) |
Make is_input a member of io_pipe_t
Diffstat (limited to 'postfork.cpp')
-rw-r--r-- | postfork.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postfork.cpp b/postfork.cpp index 558805ab..3fa3e8c4 100644 --- a/postfork.cpp +++ b/postfork.cpp @@ -248,7 +248,7 @@ static int handle_child_io(io_chain_t &io_chain) { CAST_INIT(io_pipe_t *, io_pipe, io); /* If write_pipe_idx is 0, it means we're connecting to the read end (first pipe fd). If it's 1, we're connecting to the write end (second pipe fd). */ - unsigned int write_pipe_idx = (io->is_input ? 0 : 1); + unsigned int write_pipe_idx = (io_pipe->is_input ? 0 : 1); /* debug( 0, L"%ls %ls on fd %d (%d %d)", @@ -488,7 +488,7 @@ bool fork_actions_make_spawn_properties(posix_spawnattr_t *attr, posix_spawn_fil case IO_PIPE: { CAST_INIT(const io_pipe_t *, io_pipe, io.get()); - unsigned int write_pipe_idx = (io->is_input ? 0 : 1); + unsigned int write_pipe_idx = (io_pipe->is_input ? 0 : 1); int from_fd = io_pipe->pipe_fd[write_pipe_idx]; int to_fd = io->fd; if (! err) |