From 58c1ca3ec24a99a17709b375dc71dd0158e93b17 Mon Sep 17 00:00:00 2001 From: thlo Date: Wed, 8 Jan 2014 20:59:20 +0100 Subject: Replace pipe2 by pipe for Debian. --- smarttvfactory.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'smarttvfactory.c') 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; -- cgit v1.2.3