summaryrefslogtreecommitdiffstats
path: root/games/fortune
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2005-10-19 04:48:44 +0000
committernjl <njl@FreeBSD.org>2005-10-19 04:48:44 +0000
commitd5e033e83c2ba827cba739a6e736c3f902ecc7c6 (patch)
tree5e7891c049dce9fe7672fb10c552ef6ca31d5416 /games/fortune
parentdf7513965dac96f32906c83504d33e41c854d257 (diff)
downloadFreeBSD-src-d5e033e83c2ba827cba739a6e736c3f902ecc7c6.zip
FreeBSD-src-d5e033e83c2ba827cba739a6e736c3f902ecc7c6.tar.gz
Use a pipe for reading devd events as another method of getting the AC line
status. Add a thread that waits for events on the named pipe instead of polling the line status via apm or the ACPI sysctl. Additionally, use robust error handling in case devd goes away or we temporarily can't set a frequency (i.e., passive cooling has preempted our setting). Later, this should be improved so that if adaptive control is not being used, we will block while waiting for AC line events, saving a little CPU. Submitted by: Frederik Lindberg <fli+freebsd-current/shapeshifter.se>
Diffstat (limited to 'games/fortune')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud