network_uuid_refresh_run() needs to update pool_conf_mtime as soon as it
notices a change. Otherwise it thinks that the mtime has changed every
time it is called and therefore never actually runs the refresh script.
Bug #2097.
get_mtime("/etc/xensource/pool.conf", &new_mtime);
if (new_mtime.tv_sec != pool_conf_mtime.tv_sec
|| new_mtime.tv_nsec != pool_conf_mtime.tv_nsec) {
+ pool_conf_mtime = new_mtime;
next_refresh = time_msec() + 10 * 1000;
return;
}
argv[0], strerror(errno));
}
- pool_conf_mtime = new_mtime;
free(argv[0]);
}
}