}
}
oc_mutex_unlock(g_mutexObjectList);
-
int ret = poll(readFds, counter, timeout);
oc_mutex_lock(g_mutexObjectList);
{
CAPollReturned(readFds, counter);
}
+ else if (ret == 0)
+ {
+ usleep(1000); /* some of the fields are not set by kernel on repeatedly calling
+ poll.Applying a timeout will solve this*/
+ }
else if (ret < 0)
{
OIC_LOG_V(FATAL, TAG, "poll error %s", strerror(errno));