aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-12-31 20:36:38 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-12-31 20:36:38 +0000
commit12ef007beb2962cbcf268579f77c125a7d73e81a (patch)
treedc683d70510344d638c481ad1aa9290cabef95b8
parent819f0f92f1b3c02f8bc52b0b02ddd08c198d4dc4 (diff)
downloadpaludis-12ef007beb2962cbcf268579f77c125a7d73e81a.tar.gz
paludis-12ef007beb2962cbcf268579f77c125a7d73e81a.tar.xz
Fix.
-rw-r--r--paludis/util/system.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/paludis/util/system.cc b/paludis/util/system.cc
index 8d0d87c..d5cae70 100644
--- a/paludis/util/system.cc
+++ b/paludis/util/system.cc
@@ -351,7 +351,7 @@ paludis::run_command(const Command & cmd)
close(internal_command_reader->read_fd());
internal_command_reader->clear_read_fd();
close(internal_command_reader->write_fd());
- internal_command_reader->write_fd();
+ internal_command_reader->clear_write_fd();
if (! cmd.chdir().empty())
if (-1 == chdir(stringify(cmd.chdir()).c_str()))
@@ -435,6 +435,8 @@ paludis::run_command(const Command & cmd)
{
close(pipe_command_reader->read_fd());
pipe_command_reader->clear_read_fd();
+ close(pipe_command_reader->write_fd());
+ pipe_command_reader->clear_write_fd();
close(pipe_command_response->read_fd());
pipe_command_response->clear_read_fd();