diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-13 00:19:03 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-05-13 00:19:03 +0000 |
commit | 2399dafe57885b88f3daa37c5ab2e5a6fbe19ccb (patch) | |
tree | 2cdf646dff860a90c6d3c1b2b1cfd2128c7c559c /contrib/package/freifunk-watchdog/src/watchdog.h | |
parent | 89afc3a1d5b86c064e7da32c542d931cb73eca2b (diff) |
contrib/package/freifunk-watchdog: workaround CONFIG_WATCHDOG_NOWAYOUT, trap signals
Diffstat (limited to 'contrib/package/freifunk-watchdog/src/watchdog.h')
-rw-r--r-- | contrib/package/freifunk-watchdog/src/watchdog.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/package/freifunk-watchdog/src/watchdog.h b/contrib/package/freifunk-watchdog/src/watchdog.h index f0d6209996..d3dc286fdd 100644 --- a/contrib/package/freifunk-watchdog/src/watchdog.h +++ b/contrib/package/freifunk-watchdog/src/watchdog.h @@ -28,6 +28,7 @@ #include <fcntl.h> #include <math.h> #include <time.h> +#include <signal.h> #include <sys/stat.h> #include <sys/ioctl.h> #include <sys/socket.h> @@ -59,6 +60,7 @@ /* Watchdog device */ #define WATCH_DEVICE "/dev/watchdog" #define WATCH_SHUTDOWN 'V' +#define WATCH_KEEPALIVE '\0' /* System load error action and treshold */ #define LOAD_TRESHOLD 5.00 |