All pastes #1516935 Raw Edit

Something

public text v1 · immutable
#1516935 ·published 2009-08-03 17:25 UTC
rendered paste body
Index: libs/libmythdb/mythsocket.cpp
===================================================================
--- libs/libmythdb/mythsocket.cpp	(revision 21111)
+++ libs/libmythdb/mythsocket.cpp	(working copy)
@@ -960,7 +960,10 @@
             if (FD_ISSET(m_readyread_pipe[0], &rfds))
             {
                 char buf[128];
-                ::read(m_readyread_pipe[0], buf, 128);
+                ssize_t rr;
+
+                do rr = ::read(m_readyread_pipe[0], buf, 128);
+                while ((rr < 0) && (EINTR == errno));
             }
         }
         else