[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Embedded-pv-devel] [PATCH RFC 08/18] tools/misc: Set timeout value from watchdog daemon



From: Viktor Kleinik <viktor.kleinik@xxxxxxxxxxxxxxx>

Signed-off-by: Viktor Kleinik <viktor.kleinik@xxxxxxxxxxxxxxx>
---
 tools/misc/xenwatchdogd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tools/misc/xenwatchdogd.c b/tools/misc/xenwatchdogd.c
index 4b27628..fcf7d16 100644
--- a/tools/misc/xenwatchdogd.c
+++ b/tools/misc/xenwatchdogd.c
@@ -61,6 +61,10 @@ int main(int argc, char **argv)
            err(1, "strtoul");
     }
 
+    ret = ioctl(fd, WDIOC_SETTIMEOUT, &t);
+    if (ret < 0)
+       err(1, "xenwatchdogd: Failed to set timeout\n");
+
     for (;;) {
        ret = ioctl(fd, WDIOC_KEEPALIVE);
        if (ret)
-- 
2.8.2


_______________________________________________
Embedded-pv-devel mailing list
Embedded-pv-devel@xxxxxxxxxxxxxxxxxxxx
http://lists.xenproject.org/cgi-bin/mailman/listinfo/embedded-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.