summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/InPipe.cc1
-rw-r--r--lib/OutPipe.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/InPipe.cc b/lib/InPipe.cc
index 5dc7dfc..978d24b 100644
--- a/lib/InPipe.cc
+++ b/lib/InPipe.cc
@@ -16,6 +16,7 @@ void InPipe::Hook() {
hooked = 1;
::close(1);
dup(p[1]);
+ ::close(p[1]);
}
}
diff --git a/lib/OutPipe.cc b/lib/OutPipe.cc
index f939db7..4b2e710 100644
--- a/lib/OutPipe.cc
+++ b/lib/OutPipe.cc
@@ -16,6 +16,7 @@ void OutPipe::Hook() {
hooked = 1;
::close(0);
dup(p[0]);
+ ::close(p[0]);
}
}