mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-31 22:35:23 +00:00
Fix exit code in error case (for example no sensors found.) Patch from
Andre Prendel. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5627 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -15,6 +15,7 @@ SVN-HEAD
|
||||
Don't bail out on transient errors (#2330)
|
||||
sensors: Add support for instantaneous power sensors
|
||||
Add support for current sensors
|
||||
Fix exit code in error case
|
||||
sensors.conf.8: Lots of additions and reworks
|
||||
sensors.conf.default: New, minimum version of sensors.conf.eg (#2333)
|
||||
Add sections for the SMSC SCH311x and SCH5027
|
||||
|
@@ -243,7 +243,7 @@ static void print_bus_list(void)
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
int c, res, i, error, do_bus_list;
|
||||
int c, res, i, error = 0, do_bus_list;
|
||||
const char *config_file_name = NULL;
|
||||
|
||||
struct option long_opts[] = {
|
||||
@@ -344,5 +344,5 @@ int main(int argc, char *argv[])
|
||||
|
||||
exit:
|
||||
sensors_cleanup();
|
||||
exit(res);
|
||||
exit(error);
|
||||
}
|
||||
|
Reference in New Issue
Block a user