Change-Id: Icf0af207f0a013c258f923883cb28cfcaf4506fe
Signed-off-by: ChulHo Song <ch81.song@samsung.com>
{
DIR *dirp = NULL;
struct dirent *dir_ent = NULL;
+ struct dirent entry;
char plugin_path[MAX_PATH] = {0, };
void* handle = NULL;
bool (*plugin_init)() = NULL;
return;
}
- while ((dir_ent = readdir(dirp)))
+ while ((!readdir_r(dirp, &entry, &dir_ent)))
{
snprintf(plugin_path, sizeof(plugin_path), "%s/%s", EMULD_PLUGIN_DIR, dir_ent->d_name);
{
int ret;
while ((ret = connection_create(&connection)) == CONNMAN_NOT_READY) {
- usleep(100);
+ usleep(20000);
}
if (CONNECTION_ERROR_NONE == ret) {
LOGINFO("connection_create() success!: [%p]", connection);
strncpy(ifrq.ifr_name, "eth0", sizeof("eth0"));
while (ioctl(fd, SIOCGIFADDR, &ifrq) < 0) {
/* while to get ip address */
- usleep(100);
+ usleep(20000);
}
sin = (struct sockaddr_in *)&ifrq.ifr_addr;
LOGINFO("use dynamic IP. do not need update network information.");