diff options
-rw-r--r-- | src/dnsmasq.c | 3 | ||||
-rw-r--r-- | src/dnsmasq.h | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/dnsmasq.c b/src/dnsmasq.c index 7cfb493..858c731 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -1665,9 +1665,10 @@ static void poll_resolv(int force, int do_reload, time_t now) else { res->logged = 0; - if (force || (statbuf.st_mtime != res->mtime)) + if (force || (statbuf.st_mtime != res->mtime || statbuf.st_ino != res->ino)) { res->mtime = statbuf.st_mtime; + res->ino = statbuf.st_ino; if (difftime(statbuf.st_mtime, last_change) > 0.0) { last_change = statbuf.st_mtime; diff --git a/src/dnsmasq.h b/src/dnsmasq.h index bfc0fd4..0c21cde 100644 --- a/src/dnsmasq.h +++ b/src/dnsmasq.h @@ -665,6 +665,7 @@ struct resolvc { struct resolvc *next; int is_default, logged; time_t mtime; + ino_t ino; char *name; #ifdef HAVE_INOTIFY int wd; /* inotify watch descriptor */ |