aboutsummaryrefslogtreecommitdiff
path: root/contrib/timeout_watchdog.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-04-29 10:56:15 +0200
committerChristian Grothoff <christian@grothoff.org>2018-04-29 10:56:15 +0200
commitce2864cfaa27e55096b480bf35db5f8cee2a5e7e (patch)
treebe47c017d1467870000aa1a507eab3c995304179 /contrib/timeout_watchdog.c
parent823215c974ccb1ef3cad9eb1082999cd1b910416 (diff)
downloadgnunet-ce2864cfaa27e55096b480bf35db5f8cee2a5e7e.tar.gz
gnunet-ce2864cfaa27e55096b480bf35db5f8cee2a5e7e.zip
add option to disable namecache, add velocity calculation and delay correction to zonemaster, fix some ftbfs from recent NAMESTORE API change
Diffstat (limited to 'contrib/timeout_watchdog.c')
-rw-r--r--contrib/timeout_watchdog.c7
1 files changed, 6 insertions, 1 deletions
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 @@
33 33
34static pid_t child; 34static pid_t child;
35 35
36
36static void 37static void
37sigchld_handler (int val) 38sigchld_handler (int val)
38{ 39{
39 int status = 0; 40 int status = 0;
40 int ret = 0; 41 int ret = 0;
41 42
43 (void) val;
42 waitpid (child, &status, 0); 44 waitpid (child, &status, 0);
43 if (WIFEXITED (status) != 0) 45 if (WIFEXITED (status) != 0)
44 { 46 {
@@ -53,6 +55,7 @@ sigchld_handler (int val)
53 exit (ret); 55 exit (ret);
54} 56}
55 57
58
56static void 59static void
57sigint_handler (int val) 60sigint_handler (int val)
58{ 61{
@@ -60,8 +63,10 @@ sigint_handler (int val)
60 exit (val); 63 exit (val);
61} 64}
62 65
66
63int 67int
64main (int argc, char *argv[]) 68main (int argc,
69 char *argv[])
65{ 70{
66 int timeout = 0; 71 int timeout = 0;
67 pid_t gpid = 0; 72 pid_t gpid = 0;