On Tue, Aug 24, 2004 at 05:12:05AM +0900, William Morgan wrote:
> Excerpts (reformatted) from Roeland Moors's mail of 20 Aug 2004 (EDT):
> > > Here's some code that hangs on the read for me:
> > > 
> > > PROC_FILE = "/proc/acpi/battery/BAT1/state"         # freezes
> > > #PROC_FILE = "/proc/acpi/power_resource/PFAN/state" # doesn't freeze
> > 
> > I have the same behavior with these files:
> > PROC_FILE = "/proc/acpi/battery/BAT0/state"         # freezes
> > PROC_FILE = "/proc/acpi/power_resource/PRCF/state" # doesn't freeze
> > 
> > I can't explain it :-(
> 
> So, guys, is this a bug in Ruby, or what?
> 
> (details: ruby 1.8.1 (2004-02-03) [i386-linux] and Linux kernel 2.6.8.1)

I also have the problem with these files:
PROC_FILE = "/proc/acpi/fan/CFAN/state"         # freezes
PROC_FILE = "/proc/acpi/ac_adapter/ACAD/state"  # doesn't freezes

My system:
 - Linux laptop 2.6.6 #1 Wed Jul 7 20:20:50 CEST 2004 i686 GNU/Linux
 - ruby 1.8.2 (2004-07-29) [i386-linux]
 - Asus L3C
 - Debian testing

-- 
Roeland