aboutsummaryrefslogtreecommitdiff
path: root/lib/base/console.cpp
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2008-11-05 13:05:08 +0100
committerAndreas Oberritter <obi@saftware.de>2008-11-06 01:47:05 +0100
commit35bde45a0eb503c51ed4d986ea16a71e041ade48 (patch)
tree452f0e7398d1f545130d859b0be480b2071b5cf4 /lib/base/console.cpp
parent6eecc2f4fcc1e40f9fb093d08271dca3000d4b8d (diff)
downloadenigma2-35bde45a0eb503c51ed4d986ea16a71e041ade48.tar.gz
enigma2-35bde45a0eb503c51ed4d986ea16a71e041ade48.zip
also make in FD nonblocking
Diffstat (limited to 'lib/base/console.cpp')
-rw-r--r--lib/base/console.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/base/console.cpp b/lib/base/console.cpp
index 5ca77d12..add87066 100644
--- a/lib/base/console.cpp
+++ b/lib/base/console.cpp
@@ -109,6 +109,7 @@ int eConsoleAppContainer::execute(const char *cmdline, const char * const argv[]
// eDebug("pipe in = %d, out = %d, err = %d", fd[0], fd[1], fd[2]);
+ ::fcntl(fd[0], F_SETFL, O_NONBLOCK);
::fcntl(fd[1], F_SETFL, O_NONBLOCK);
::fcntl(fd[2], F_SETFL, O_NONBLOCK);
in = eSocketNotifier::create(eApp, fd[0], eSocketNotifier::Read|eSocketNotifier::Priority|eSocketNotifier::Hungup );