From add66b18753ce10f9a0a243dbf365e19abe183ee Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Mon, 24 Nov 2003 20:18:47 +0000 Subject: [PATCH] Undo unacceptable hack. Better let things crash if they would, at least we'll be able to investigate. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2092 7894878c-1315-0410-8ee3-d5d059ff63e0 --- lib/proc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/proc.c b/lib/proc.c index fdb8fb16..becdbcb7 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -349,7 +349,9 @@ int sensors_write_proc(sensors_chip_name name, int feature, double value) sysctl_name[3] = the_feature->sysctl; if (sysctl(sysctl_name, 4, buf, &buflen, NULL, 0)) return -SENSORS_ERR_PROC; - if (sysctl_name[0] != CTL_DEV) { sysctl_name[0] = CTL_DEV ; } + /* The following line is known to solve random problems, still it + can't be considered a definitive solution... + if (sysctl_name[0] != CTL_DEV) { sysctl_name[0] = CTL_DEV ; } */ for (mag = the_feature->scaling; mag > 0; mag --) value *= 10.0; for (; mag < 0; mag ++)