summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2014-12-10 04:54:43 +0000
committerian <ian@FreeBSD.org>2014-12-10 04:54:43 +0000
commit8f2224905ca7c266b9833bbb440802a0132abe33 (patch)
treeadd4a9f0c73d5641f3a825d27e976da234c9edf0 /lib/libc
parent4db765eac91c72646d546cf3489c365ef5fd7cbe (diff)
downloadFreeBSD-src-8f2224905ca7c266b9833bbb440802a0132abe33.zip
FreeBSD-src-8f2224905ca7c266b9833bbb440802a0132abe33.tar.gz
Fix the watchdog timeout calculation to prevent wrap. The RPi hardware
can't do a timeout bigger than 15 seconds. The code wasn't checking for this and because bitmasking was involved the requested timeout was basically adjusted modulo-16. That led to things like a 128 second timeout actually being a 9 second timeout, which accidentally worked fine until watchdogd was changed to only pet the dog once every 10 seconds.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud