automatic threshold was only working in battery mode
the threshold was correctly set according to the CPU
number, but the wall_threshold still had an hardcoded
30%
Merge pull request 'use of fprintf() is not async-signal safe; call write() instead' (#2) from seanmcg/obsdfreqd:signal_handler_reentrancy into main
Reviewed-on: https://tildegit.org/solene/obsdfreqd/pulls/2
code improvement
1) in get_temp, check temperature_sensor_found to avoid a bogus sysctl
if a temperature sensor was not found
2) fix checks for min_freq and max_freq (were improperly checked, resulting
in a failed sysctl if passing e.g. -m 1600)
3) preserve contents of argv[] because kvm_getargv grabs whatever is in the
program's argv[], making ps report a different command line compared to
how the program was started when parsing `,'
Leave rc.d(8) script handling to the OpenBSD port
sysutils/obsdfreqd now has a local copy of the script as is common with
daemons in port. Apply the ports patch so the new release can build
without any.
Sync usage with manual
Make spacing, wrapping as well as argument names match.
Much nicer to read on default 80-char wide xterm.
makefile: make it compliant for ports infrastructure
obsdfreqd: use sysctl to get temperature, reenable unveil. Thanks trondd!