[Panicsel-developers] error in sensor
Brought to you by:
arcress
|
From: Meik H. <Mei...@ma...> - 2003-04-03 13:10:55
|
Hi,
I found a strange problem with sensor from panicsel-1.3.0,
linux 2.4.20, openIPMI drivers v18:
It works like a charm from the commandline but fails when called from
crontab.
## this a output snippet from "strace sensor" when it works:
open("/dev/ipmi0", O_RDWR) = 3
ioctl(3, 0x80046910, 0xbfffec6c) = 0
ioctl(3, 0x8014690d, 0xbfffec70) = 0
select(4, [0 3], NULL, NULL, {5, 0}) = 1 (in [3], left {4, 780000})
ioctl(3, I2OEVTGET, 0xbfffecc0) = 0
## and this happens when I try to run it from crontab:
open("/dev/ipmi0", O_RDWR) = 3
ioctl(3, 0x80046910, 0xbffff0e4) = 0
ioctl(3, 0x8014690d, 0xbffff0f0) = 0
select(4, [0 3], NULL, NULL, {5, 0}) = 1 (in [0], left {5, 0})
ioctl(3, I2OEVTGET, 0xbffff140) = -1 EAGAIN (Resource temporarily unavailable)
I think there is some subtle error in the filedescriptor handling in
ipmicmd_mv(). Something goes wrong when stdin is redirected:
I can reproduce the error without crontab by simply
calling "sensor < /dev/null"
Cheers, Meik
--
Meik Hellmund
Institut fuer Mathematik, Uni Leipzig
e-mail: Mei...@ma...
http://www.math.uni-leipzig.de/~hellmund
|