X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/728c78384a71b0231cfe0047292e34b8ec860522..9fd2c54ef3bf35619766b304b3945695eb9271a6:/lib/base/console.cpp diff --git a/lib/base/console.cpp b/lib/base/console.cpp index 25318cc9..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 ); @@ -497,7 +498,7 @@ eConsolePy_execute(eConsolePy* self, PyObject *argt) argv[argpos++] = PyString_AsString(arg); } argv[argpos] = 0; - return PyInt_FromLong(self->cont->execute(argv[0], argv)); + return PyInt_FromLong(self->cont->execute(argv[0], argv+1)); } else {