diff --git a/mythtv/libs/libmythdb/lcddevice.cpp b/mythtv/libs/libmythdb/lcddevice.cpp
index 06682ab..2406438 100644
|
a
|
b
|
|
| 12 | 12 | #include <cmath> |
| 13 | 13 | |
| 14 | 14 | // POSIX headers |
| | 15 | #include <fcntl.h> |
| 15 | 16 | #include <unistd.h> |
| 16 | 17 | |
| 17 | 18 | // Qt headers |
| … |
… |
|
| 20 | 21 | #include <QTextStream> |
| 21 | 22 | #include <QTextCodec> |
| 22 | 23 | #include <QByteArray> |
| | 24 | #include <QDir> |
| | 25 | #include <QStringList> |
| 23 | 26 | |
| 24 | 27 | // MythTV headers |
| 25 | 28 | #include "lcddevice.h" |
| … |
… |
bool LCD::connectToHost(const QString &lhostname, unsigned int lport)
|
| 137 | 140 | |
| 138 | 141 | if (res == 0) |
| 139 | 142 | { |
| | 143 | #ifndef _WIN32 |
| | 144 | QDir dir = QDir("/proc/self/fd"); |
| | 145 | QStringList files = dir.entryList(QDir::Files|QDir::System, QDir::Name); |
| | 146 | QStringList::const_iterator it; |
| | 147 | |
| | 148 | for (it = files.constBegin(); it != files.constEnd(); ++it) { |
| | 149 | if ((*it).startsWith(".")) |
| | 150 | continue; |
| | 151 | fcntl((*it).toInt(), F_SETFD, FD_CLOEXEC); |
| | 152 | } |
| | 153 | #endif |
| 140 | 154 | // we need to start the mythlcdserver |
| 141 | 155 | VERBOSE(VB_GENERAL, "Starting mythlcdserver"); |
| 142 | 156 | |