aboutsummaryrefslogtreecommitdiffhomepage
path: root/postfork.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-22 13:41:21 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-08-22 13:41:21 -0700
commitf5d4e3f94caf8d546d811afaac91e67d3608a37b (patch)
treedf7995c42fe7a30d22af5ea6566c3df78ddd7a00 /postfork.cpp
parent04ea680e9a803440c85fefae0b4db329c65c1cb2 (diff)
Reintroduce IO transmorgrification (yuck) to fix problems with fish_config and complicated IO redirections
Diffstat (limited to 'postfork.cpp')
-rw-r--r--postfork.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/postfork.cpp b/postfork.cpp
index 998ab957..9f94ae00 100644
--- a/postfork.cpp
+++ b/postfork.cpp
@@ -169,10 +169,6 @@ static int handle_child_io( io_chain_t &io_chain )
io_data_t *io = io_chain.at(idx);
int tmp;
- /* If this is not the last IO redirection for this fd, then skip it. This comes about because of the funky way in which we list IO redirections: every process in a job gets the input and output redirections, even internal ones. For example, in 'cat < foo | cat | cat > bar', the middle cat sees both < foo and > bar. It also gets pipes for its fd 0 and 1, which appear after in the list. */
- if (io != io_chain.get_io_for_fd(io->fd))
- continue;
-
if( io->io_mode == IO_FD && io->fd == io->param1.old_fd )
{
continue;
@@ -444,10 +440,6 @@ bool fork_actions_make_spawn_properties(posix_spawnattr_t *attr, posix_spawn_fil
{
const io_data_t *io = j->io.at(idx);
- /* If this is not the last IO redirection for this fd, then skip it. This comes about because of the funky way in which we list IO redirections: every process in a job gets the input and output redirections, even internal ones. For example, in 'cat < foo | cat | cat > bar', the middle cat sees both < foo and > bar. It also gets pipes for its fd 0 and 1, which appear after in the list. */
- if (io != j->io.get_io_for_fd(io->fd))
- continue;
-
if( io->io_mode == IO_FD && io->fd == io->param1.old_fd )
{
continue;