/* Global watchdog fd, required by signal handler */
int wdfd = -1;
-/* Handle finished childs */
+/* Handle finished children */
static void sigchld_handler(int sig)
{
pid_t pid;
ioctl(wdfd, WDIOC_SETTIMEOUT, &wdtimeout);
}
- /* Install signal handler to reap childs */
+ /* Install signal handler to reap children */
sa.sa_handler = sigchld_handler;
sa.sa_flags = 0;
sigaction(SIGCHLD, &sa, NULL);
#define WATCH_SHUTDOWN 'V'
#define WATCH_KEEPALIVE '\0'
-/* System load error action and treshold */
+/* System load error action and threshold */
#define LOAD_TRESHOLD 15.00
#define LOAD_ACTION "/sbin/reboot", "/sbin/reboot"