aboutsummaryrefslogtreecommitdiff
path: root/lib
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:52:05 +0100
commit317d39715811fcfab181641398b43582cdb4e22d (patch)
tree37973c19b1291e98187de7846861ef419daf926e /lib
parent938a550b0874cd87f475a638551d7046f729d1bc (diff)
downloadenigma2-317d39715811fcfab181641398b43582cdb4e22d.tar.gz
enigma2-317d39715811fcfab181641398b43582cdb4e22d.zip
also make in FD nonblocking
Diffstat (limited to 'lib')
-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 );