aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-02 18:48:43 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-09-02 18:48:43 +0100
commita6ad0e77a27a9ac5a7a4143cef68ea752e8c2c8a (patch)
treed0f9186b070d10f696391e6c16219ff2b424d774
parent7db5cb4a1a07d0d9d857ea39f47ed01ae2fd638c (diff)
downloadpaludis-a6ad0e77a27a9ac5a7a4143cef68ea752e8c2c8a.tar.gz
paludis-a6ad0e77a27a9ac5a7a4143cef68ea752e8c2c8a.tar.xz
dfi
-rw-r--r--paludis/util/system.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/paludis/util/system.cc b/paludis/util/system.cc
index c9340b3..2ced997 100644
--- a/paludis/util/system.cc
+++ b/paludis/util/system.cc
@@ -182,7 +182,8 @@ namespace paludis
std::ostream * ds = 0,
std::istream * is = 0,
int isf = -1,
- const std::string & isfe = "") :
+ const std::string & isfe = "",
+ const bool ps = false) :
command(c),
clearenv(cl),
setenv_values(s),
@@ -200,7 +201,7 @@ namespace paludis
input_stream(is),
input_fd(isf),
input_fd_env_var(isfe),
- ptys(false)
+ ptys(ps)
{
}
};
@@ -223,7 +224,7 @@ Command::Command(const Command & other) :
other._imp->prefix_discard_blank_output,
other._imp->prefix_blank_lines, other._imp->pipe_command_handler, other._imp->captured_stdout_stream,
other._imp->captured_stderr_stream, other._imp->input_stream, other._imp->input_fd,
- other._imp->input_fd_env_var))
+ other._imp->input_fd_env_var, other._imp->ptys))
{
}
@@ -244,7 +245,8 @@ Command::operator= (const Command & other)
other._imp->captured_stderr_stream,
other._imp->input_stream,
other._imp->input_fd,
- other._imp->input_fd_env_var));
+ other._imp->input_fd_env_var,
+ other._imp->ptys));
if (other.uid() && other.gid())
with_uid_gid(*other.uid(), *other.gid());
}