Go to the documentation of this file.
11 #include <sys/ioctl.h>
12 #include <linux/types.h>
13 #include <linux/watchdog.h>
22 static void keep_alive(
void)
34 static void term(
int sig)
37 fprintf(stderr,
"Stopping watchdog ticks...\n");
48 fprintf(stderr,
"Watchdog device not enabled.\n");
57 fprintf(stderr,
"Watchdog card disabled.\n");
63 fprintf(stderr,
"Watchdog card enabled.\n");
67 fprintf(stderr,
"-d to disable, -e to enable.\n");
68 fprintf(stderr,
"run by itself to tick the card.\n");
73 fprintf(stderr,
"Watchdog Ticking Away!\n");