X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ccacb75cc03833ebc4a44bbc740bb8b196b53880..cc250de04712b9d585642cc9317a3b3319b94b89:/lib/base/filepush.cpp diff --git a/lib/base/filepush.cpp b/lib/base/filepush.cpp index 645d3685..3412c84a 100644 --- a/lib/base/filepush.cpp +++ b/lib/base/filepush.cpp @@ -190,8 +190,10 @@ void eFilePushThread::thread() { eDebug("sending PVR commit"); - struct pollfd pfd[1] = {m_fd_dest, POLLHUP}; - poll(pfd, 1, 10000); + struct pollfd pfd; + pfd.fd = m_fd_dest; + pfd.events = POLLIN; + poll(&pfd, 1, 10000); sleep(5); /* HACK to allow ES buffer to drain */ already_empty = 1; // if (::ioctl(m_fd_dest, PVR_COMMIT) < 0 && errno == EINTR)