Changeset 5856 for trunk/centstorage/src/reloadConf.c
- Timestamp:
- 07/23/08 17:57:41 (4 months ago)
- Files:
-
- 1 modified
-
trunk/centstorage/src/reloadConf.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/centstorage/src/reloadConf.c
r5820 r5856 30 30 ** tutu.conf during the execution). 31 31 ** 32 ** You cannot load or unload module duri ong the execution of centstorage.32 ** You cannot load or unload module during the execution of centstorage. 33 33 ** Maybe i'll change that. 34 34 */ … … 58 58 /* 59 59 ** This function contains the main loop. It checks the md5 of the configuration 60 ** file each secondand load the new configuration if it has been modified.60 ** file each and load the new configuration if it has been modified. 61 61 */ 62 62 void *checkMd5ConfFile() … … 65 65 unsigned char *new_md5, *md5; 66 66 conf_t *saveConf; 67 // char confFile[128]; 68 int ret; //, timeout; 69 // unsigned short unit; //archUnit, archTime, useArch; 67 int ret, log; 70 68 unsigned char tmp; 71 int log;72 69 time_t t; 73 70 74 /* copy the configuration path file to avoid access the struct conf75 and so no mutexes ara locked after*/76 /* LOCK_MUTEX(&mutex);77 strncpy(confFile, conf->confFile, 127);78 79 timeout = conf->timeout;80 unit = conf->unit;81 useArch = conf->logs->arch;82 archUnit = conf->logs->unit;83 archTime = conf->logs->time;84 UNLOCK_MUTEX(&mutex);*/85 86 log = conf->logs->log;87 71 /* calculate the first md5 */ 88 72 md5 = main_md5(conf->confFile);
