git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6eecc2f
)
also make in FD nonblocking
author
ghost
<andreas.monzner@multimedia-labs.de>
Wed, 5 Nov 2008 12:05:08 +0000
(13:05 +0100)
committer
Andreas Oberritter
<obi@saftware.de>
Thu, 6 Nov 2008 00:47:05 +0000
(
01:47
+0100)
lib/base/console.cpp
patch
|
blob
|
history
diff --git
a/lib/base/console.cpp
b/lib/base/console.cpp
index 5ca77d12a46cc293caf8c84347c2d0ea8bc9a109..add870666b2af45b0dc65c84d0fa4ec0eef1a63e 100644
(file)
--- 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 );