aboutsummaryrefslogtreecommitdiff
path: root/wd/wdd.c
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2006-07-16 14:53:40 +0200
committerWilly Tarreau <willy@wtap.(none)>2006-07-26 11:51:24 +0200
commit78e96be2b59ea39f4c9aba385c3e64324202f124 (patch)
treee4edf819b1d8f706148cf564d83f746fd4f8d18c /wd/wdd.c
parent[RELEASE] flxutils-0.1.23 (diff)
downloadflxutils-78e96be2b59ea39f4c9aba385c3e64324202f124.tar.xz
[RELEASE] flxutils-0.1.24v0.1.24
Diffstat (limited to '')
-rw-r--r--wd/wdd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/wd/wdd.c b/wd/wdd.c
index 8481529..208fcc4 100644
--- a/wd/wdd.c
+++ b/wd/wdd.c
@@ -7,7 +7,8 @@
#include <sys/stat.h>
#include <fcntl.h>
-const char dev_wd_str[] = "/dev/watchdog";
+const char dev_wd_str[] = "/dev/watchdog"; /* standard entry */
+const char dev_misc_str[] = "/dev/misc/watchdog"; /* devfs entry */
const char root_str[] = "/";
/*
@@ -103,6 +104,8 @@ int main (int argc, char **argv) {
while (1) {
if (dev == -1)
dev = open(dev_wd_str, O_RDWR);
+ if (dev == -1)
+ dev = open(dev_misc_str, O_RDWR);
if ((dev != -1) && (write(dev, dev_wd_str, 1) != 1)) {
/* write error, we'll restart */
close(dev);