|
From: | Rob Browning |
Subject: | Guile hangs on /sys file read. |
Date: | Fri, 24 Nov 2006 12:20:48 -0800 |
User-agent: | Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |