Ticket #7844: 7844-mythsocketthread.patch
File 7844-mythsocketthread.patch, 934 bytes (added by , 14 years ago) |
---|
-
libs/libmythdb/mythsocketthread.cpp
279 279 // Unfortunately, select on a pipe is not supported on all 280 280 // platforms. So we fallback to a loop that instead times out 281 281 // of select and checks for wakeAll event. 282 while (!rval)283 {284 282 struct timeval timeout; 285 283 timeout.tv_sec = 0; 286 284 timeout.tv_usec = kShortWait * 1000; 287 285 rval = select(maxfd + 1, &rfds, NULL, &efds, &timeout); 288 if (!rval)289 m_readyread_wait.wait(&m_readyread_lock, kShortWait);290 }291 286 287 if (rval > 0) 292 288 VERBOSE(VB_SOCKET|VB_EXTRA, "Got data on select (no pipe)"); 293 289 } 294 290