From: ghost Date: Wed, 5 Nov 2008 12:05:08 +0000 (+0100) Subject: also make in FD nonblocking X-Git-Tag: 2.6.0~350^2~32 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/317d39715811fcfab181641398b43582cdb4e22d also make in FD nonblocking --- 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 );