freifunk-watchdog: Fix typos

Signed-off-by: David Yang <mmyangfl@gmail.com>
This commit is contained in:
yangfl 2018-08-18 12:21:21 +08:00
parent 896892f9af
commit 641475ee59
2 changed files with 3 additions and 3 deletions

View file

@ -21,7 +21,7 @@
/* Global watchdog fd, required by signal handler */ /* Global watchdog fd, required by signal handler */
int wdfd = -1; int wdfd = -1;
/* Handle finished childs */ /* Handle finished children */
static void sigchld_handler(int sig) static void sigchld_handler(int sig)
{ {
pid_t pid; pid_t pid;
@ -406,7 +406,7 @@ static int do_daemon(void)
ioctl(wdfd, WDIOC_SETTIMEOUT, &wdtimeout); ioctl(wdfd, WDIOC_SETTIMEOUT, &wdtimeout);
} }
/* Install signal handler to reap childs */ /* Install signal handler to reap children */
sa.sa_handler = sigchld_handler; sa.sa_handler = sigchld_handler;
sa.sa_flags = 0; sa.sa_flags = 0;
sigaction(SIGCHLD, &sa, NULL); sigaction(SIGCHLD, &sa, NULL);

View file

@ -64,7 +64,7 @@
#define WATCH_SHUTDOWN 'V' #define WATCH_SHUTDOWN 'V'
#define WATCH_KEEPALIVE '\0' #define WATCH_KEEPALIVE '\0'
/* System load error action and treshold */ /* System load error action and threshold */
#define LOAD_TRESHOLD 15.00 #define LOAD_TRESHOLD 15.00
#define LOAD_ACTION "/sbin/reboot", "/sbin/reboot" #define LOAD_ACTION "/sbin/reboot", "/sbin/reboot"