src/server/daemon/configmanager.c

changeset 69
4a10bc0ee80d
parent 62
c47e081b6c0f
child 74
5bc6d078fb2c
--- a/src/server/daemon/configmanager.c	Mon May 27 12:28:56 2013 +0200
+++ b/src/server/daemon/configmanager.c	Thu Jun 20 13:27:07 2013 +0200
@@ -105,7 +105,7 @@
     }
     
     //printf("1 time: %d - %d\n", f->last_modified, s.st_mtim.tv_sec);
-    if(f->last_modified != s.st_mtim.tv_sec) {
+    if(f->last_modified != s.st_mtime) {
         /* reload the file */
         printf("reload: %s\n", f->file.ptr);
         log_ereport(
@@ -113,7 +113,7 @@
                 "reload configuration file: %s",
                 f->file.ptr);
         f->reload(f, conf);
-        f->last_modified = s.st_mtim.tv_sec;
+        f->last_modified = s.st_mtime;
         if(reload) {
             *reload = 1;
         }
@@ -152,7 +152,7 @@
             return -1;
         }
         
-        sc_last_modified = s.st_mtim.tv_sec;
+        sc_last_modified = s.st_mtime;
     } else if(0) {
         /* copy configuration */
         printf("cfgmgr copy server.conf\n");

mercurial