Given:

  $ ls -l /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
  -r--r--r-- 1 root root 4096 Nov 24 10:07
    /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq

  $ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
  1862000

This hangs:

  $ guile -c '(call-with-input-file 
"/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq" read)'

Strace shows that the process is hanging in a select.  The same thing
works fine for /proc/loadavg.

I haven't investigated further yet.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


_______________________________________________
Guile-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/guile-devel

Reply via email to