diff options
author | ian <ian@FreeBSD.org> | 2014-12-10 04:54:43 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-12-10 04:54:43 +0000 |
commit | 8f2224905ca7c266b9833bbb440802a0132abe33 (patch) | |
tree | add4a9f0c73d5641f3a825d27e976da234c9edf0 /lib/libc | |
parent | 4db765eac91c72646d546cf3489c365ef5fd7cbe (diff) | |
download | FreeBSD-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