also make in FD nonblocking
authorghost <andreas.monzner@multimedia-labs.de>
Wed, 5 Nov 2008 12:05:08 +0000 (13:05 +0100)
committerAndreas Oberritter <obi@saftware.de>
Thu, 6 Nov 2008 00:47:05 +0000 (01:47 +0100)
lib/base/console.cpp

index 5ca77d12a46cc293caf8c84347c2d0ea8bc9a109..add870666b2af45b0dc65c84d0fa4ec0eef1a63e 100644 (file)
@@ -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 );