summaryrefslogtreecommitdiff
path: root/src/shell_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/shell_manager.cc')
-rw-r--r--src/shell_manager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell_manager.cc b/src/shell_manager.cc
index 18f7c896..81643dad 100644
--- a/src/shell_manager.cc
+++ b/src/shell_manager.cc
@@ -54,8 +54,8 @@ String ShellManager::pipe(const String& input,
close(write_pipe[1]);
close(read_pipe[0]);
- dup2(read_pipe[1], 1);
- dup2(write_pipe[0], 0);
+ dup2(read_pipe[1], 1); close(read_pipe[1]);
+ dup2(write_pipe[0], 0); close(write_pipe[0]);
boost::regex_iterator<String::iterator> it(cmdline.begin(), cmdline.end(), m_regex);
boost::regex_iterator<String::iterator> end;