summaryrefslogtreecommitdiff
path: root/lib/InPipe.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/InPipe.cc')
-rw-r--r--lib/InPipe.cc1
1 files changed, 1 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]);
}
}