summaryrefslogtreecommitdiff
path: root/smarttvfactory.c
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2014-01-08 20:59:20 +0100
committerthlo <smarttv640@gmail.com>2014-01-08 20:59:20 +0100
commit58c1ca3ec24a99a17709b375dc71dd0158e93b17 (patch)
tree3490c8e8f7954ecddbf521b005724e5bd406bc55 /smarttvfactory.c
parentc1ca6779adb40404f4cfaa95a7daadc8d0f6d497 (diff)
downloadvdr-plugin-smarttvweb-58c1ca3ec24a99a17709b375dc71dd0158e93b17.tar.gz
vdr-plugin-smarttvweb-58c1ca3ec24a99a17709b375dc71dd0158e93b17.tar.bz2
Replace pipe2 by pipe for Debian.
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;