From ce2864cfaa27e55096b480bf35db5f8cee2a5e7e Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 29 Apr 2018 10:56:15 +0200 Subject: add option to disable namecache, add velocity calculation and delay correction to zonemaster, fix some ftbfs from recent NAMESTORE API change --- contrib/timeout_watchdog.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'contrib') diff --git a/contrib/timeout_watchdog.c b/contrib/timeout_watchdog.c index 7a0376b9f..fc61a7cc7 100644 --- a/contrib/timeout_watchdog.c +++ b/contrib/timeout_watchdog.c @@ -33,12 +33,14 @@ static pid_t child; + static void sigchld_handler (int val) { int status = 0; int ret = 0; + (void) val; waitpid (child, &status, 0); if (WIFEXITED (status) != 0) { @@ -53,6 +55,7 @@ sigchld_handler (int val) exit (ret); } + static void sigint_handler (int val) { @@ -60,8 +63,10 @@ sigint_handler (int val) exit (val); } + int -main (int argc, char *argv[]) +main (int argc, + char *argv[]) { int timeout = 0; pid_t gpid = 0; -- cgit v1.2.3