// 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 );
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
{