watchdog: WDIOC_SETTIMEOUT accepts seconds, not milliseconds

klogd: handle many lines at once, by Steve Bennett (steveb AT workware.net.au)
This commit is contained in:
Denis Vlasenko
2008-10-04 16:40:17 +00:00
parent c2d5a27b62
commit 93d0776a96
2 changed files with 46 additions and 29 deletions

View File

@ -55,6 +55,8 @@ int watchdog_main(int argc, char **argv)
/* Use known fd # - avoid needing global 'int fd' */
xmove_fd(xopen(argv[argc - 1], O_WRONLY), 3);
/* WDIOC_SETTIMEOUT takes seconds, not milliseconds */
htimer_duration = htimer_duration / 1000;
ioctl_or_warn(3, WDIOC_SETTIMEOUT, &htimer_duration);
#if 0
ioctl_or_warn(3, WDIOC_GETTIMEOUT, &htimer_duration);