contrib/package/freifunk-watchdog: workaround CONFIG_WATCHDOG_NOWAYOUT, trap signals
[project/luci.git] / contrib / package / freifunk-watchdog / src / watchdog.h
index f0d6209..d3dc286 100644 (file)
@@ -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