summaryrefslogtreecommitdiff
path: root/smarttvfactory.c
diff options
context:
space:
mode:
Diffstat (limited to 'smarttvfactory.c')
-rwxr-xr-xsmarttvfactory.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/smarttvfactory.c b/smarttvfactory.c
index 0478649..7fb80b8 100755
--- a/smarttvfactory.c
+++ b/smarttvfactory.c
@@ -465,9 +465,13 @@ void SmartTvServer::setWriteFlag(int fd) {
int SmartTvServer::openPipe() {
int pipefd[2];
- if (pipe2(pipefd, O_NONBLOCK) == -1) {
+ // if (pipe2(pipefd, O_NONBLOCK) == -1) {
+ if (pipe(pipefd) == -1) {
return 0;
}
+ setNonBlocking(pipefd[0]);
+ setNonBlocking(pipefd[1]);
+
*(mLog.log()) << mLog.getTimeString() << ": SmartTvServer::openPipe pipefd[0]= " << pipefd[0]
<< " pipefd[1]= " << pipefd[1] << endl;