Changeset 4693
- Timestamp:
- 08/22/07 19:04:12 (6 years ago)
- Location:
- lm-sensors/branches/lm-sensors-3.0.0
- Files:
-
- 4 modified
-
lib/init.c (modified) (1 diff)
-
lib/libsensors.3 (modified) (1 diff)
-
lib/sensors.h (modified) (1 diff)
-
prog/sensord/lib.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/branches/lm-sensors-3.0.0/lib/init.c
r4673 r4693 41 41 { 42 42 int res; 43 sensors_cleanup(); 43 44 44 if (!sensors_init_sysfs()) 45 45 return -SENSORS_ERR_PROC; -
lm-sensors/branches/lm-sensors-3.0.0/lib/libsensors.3
r4666 r4693 54 54 .B int sensors_init(FILE *input); 55 55 .br 56 (Re)load the configuration file and the detected chips list. If this returns a value unequal to zero, you are in trouble; you can not assume anything will be initialized properly. 56 Load the configuration file and the detected chips list. If this returns a 57 value unequal to zero, you are in trouble; you can not assume anything will 58 be initialized properly. If you want to reload the configuration file, call 59 sensors_cleanup() below before calling sensors_init() again. 57 60 58 61 .B void sensors_cleanup(void); -
lm-sensors/branches/lm-sensors-3.0.0/lib/sensors.h
r4689 r4693 57 57 } sensors_chip_name; 58 58 59 /* (Re)load the configuration file and the detected chips list. If this 60 returns a value unequal to zero, you are in trouble; you can not 61 assume anything will be initialized properly. */ 59 /* Load the configuration file and the detected chips list. If this 60 returns a value unequal to zero, you are in trouble; you can not 61 assume anything will be initialized properly. If you want to 62 reload the configuration file, call sensors_cleanup() below before 63 calling sensors_init() again. */ 62 64 int sensors_init(FILE *input); 63 65 -
lm-sensors/branches/lm-sensors-3.0.0/prog/sensord/lib.c
r2832 r4693 91 91 ret = 10; 92 92 } else if (!reload || (difftime (stats.st_mtime, cfgLastModified) > 0.0)) { 93 if (reload) 93 if (reload) { 94 94 sensorLog (LOG_INFO, "configuration reloading"); 95 sensors_cleanup (); 96 } 95 97 if (!(cfg = fopen (cfgPath, "r"))) { 96 98 sensorLog (LOG_ERR, "Error opening sensors configuration file: %s", cfgPath);
