Ticket #7844: 7844-mythsocketthread.patch

File 7844-mythsocketthread.patch, 934 bytes (added by Jeff Lu <jll544@…>, 14 years ago)
  • libs/libmythdb/mythsocketthread.cpp

     
    279279            // Unfortunately, select on a pipe is not supported on all
    280280            // platforms. So we fallback to a loop that instead times out
    281281            // of select and checks for wakeAll event.
    282             while (!rval)
    283             {
    284282                struct timeval timeout;
    285283                timeout.tv_sec = 0;
    286284                timeout.tv_usec = kShortWait * 1000;
    287285                rval = select(maxfd + 1, &rfds, NULL, &efds, &timeout);
    288                 if (!rval)
    289                     m_readyread_wait.wait(&m_readyread_lock, kShortWait);
    290             }
    291286
     287            if (rval > 0)
    292288            VERBOSE(VB_SOCKET|VB_EXTRA, "Got data on select (no pipe)");
    293289        }
    294290