use POLLPRI instead of POLLHUP
[enigma2.git] / lib / base / filepush.cpp
index d43b6e1..605ec8a 100644 (file)
@@ -192,7 +192,7 @@ void eFilePushThread::thread()
                                
                                struct pollfd pfd;
                                pfd.fd = m_fd_dest;
-                               pfd.events = POLLHUP;
+                               pfd.events = POLLPRI;
                                poll(&pfd, 1, 10000);
                                sleep(5); /* HACK to allow ES buffer to drain */
                                already_empty = 1;