aboutsummaryrefslogtreecommitdiff
path: root/lib/base/console.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/base/console.cpp')
-rw-r--r--lib/base/console.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/base/console.cpp b/lib/base/console.cpp
index 6dc21d2e..3dfcbae8 100644
--- a/lib/base/console.cpp
+++ b/lib/base/console.cpp
@@ -268,6 +268,17 @@ void eConsoleAppContainer::sendCtrlC()
}
}
+void eConsoleAppContainer::sendEOF()
+{
+ if (out)
+ out->stop();
+ if (fd[1] != -1)
+ {
+ ::close(fd[1]);
+ fd[1]=-1;
+ }
+}
+
void eConsoleAppContainer::closePipes()
{
if (in)