RE: [Panicsel-developers] error in sensor
Brought to you by:
arcress
|
From: Cress, A. R <and...@in...> - 2003-04-04 00:08:47
|
Hmmm. It seems to have problems when stdin is null, regardless of driver
version.
I'll see what I can find out with gdb. Good feedback.
Thanks,
Andy
-----Original Message-----
From: Meik Hellmund [mailto:Mei...@ma...]
Sent: Thursday, April 03, 2003 8:08 AM
To: pan...@li...
Subject: [Panicsel-developers] error in sensor
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
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Panicsel-developers mailing list
Pan...@li...
https://lists.sourceforge.net/lists/listinfo/panicsel-developers
|