version 1.61, 2003/10/13 14:21:09
|
version 1.62, 2003/10/16 22:46:41
|
|
|
} | } |
} | } |
| |
|
// Fixed in monitor_2 but added because Monitor is still the default monitor. |
|
// When fdread.fd_count is 0 don't imediatly return, otherwize this loops out of control |
|
// kicking off kill idle thread threads. E.g. There is nothing to select on when the cimserver |
|
// is shutting down. |
|
if( fdread.fd_count == 0 ) |
|
{ |
|
Thread::sleep( milliseconds ); |
|
_entry_mut.unlock(); |
|
return false; |
|
} |
|
|
_entry_mut.unlock(); | _entry_mut.unlock(); |
int events = select(FD_SETSIZE, &fdread, NULL, NULL, &tv); | int events = select(FD_SETSIZE, &fdread, NULL, NULL, &tv); |
_entry_mut.lock(pegasus_thread_self()); | _entry_mut.lock(pegasus_thread_self()); |