aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ats/Makefile.am1
-rwxr-xr-xsrc/gns/test_gns_rel_expiration.sh7
-rw-r--r--src/util/gnunet-service-resolver.c2
-rw-r--r--src/util/scheduler.c4
4 files changed, 11 insertions, 3 deletions
diff --git a/src/ats/Makefile.am b/src/ats/Makefile.am
index 4b9dac842..ac8a411eb 100644
--- a/src/ats/Makefile.am
+++ b/src/ats/Makefile.am
@@ -108,6 +108,7 @@ libgnunet_plugin_ats_ril_la_SOURCES = \
108libgnunet_plugin_ats_ril_la_LIBADD = \ 108libgnunet_plugin_ats_ril_la_LIBADD = \
109 libgnunetats.la \ 109 libgnunetats.la \
110 $(top_builddir)/src/statistics/libgnunetstatistics.la \ 110 $(top_builddir)/src/statistics/libgnunetstatistics.la \
111 $(top_builddir)/src/nt/libgnunetnt.la \
111 $(top_builddir)/src/util/libgnunetutil.la \ 112 $(top_builddir)/src/util/libgnunetutil.la \
112 $(LTLIBINTL) 113 $(LTLIBINTL)
113libgnunet_plugin_ats_ril_la_LDFLAGS = \ 114libgnunet_plugin_ats_ril_la_LDFLAGS = \
diff --git a/src/gns/test_gns_rel_expiration.sh b/src/gns/test_gns_rel_expiration.sh
index 66adbb631..c7c66bc27 100755
--- a/src/gns/test_gns_rel_expiration.sh
+++ b/src/gns/test_gns_rel_expiration.sh
@@ -7,6 +7,13 @@ if [ -z $LOCATION ]
7then 7then
8 LOCATION="gnunet-config" 8 LOCATION="gnunet-config"
9fi 9fi
10
11if [ -z $(which timeout) ]
12then
13 echo "timeout utility not found which is required for test."
14 exit 77
15fi
16
10$LOCATION --version 1> /dev/null 17$LOCATION --version 1> /dev/null
11if test $? != 0 18if test $? != 0
12then 19then
diff --git a/src/util/gnunet-service-resolver.c b/src/util/gnunet-service-resolver.c
index d85885d64..79108ff2d 100644
--- a/src/util/gnunet-service-resolver.c
+++ b/src/util/gnunet-service-resolver.c
@@ -1246,7 +1246,7 @@ shutdown_task (void *cls)
1246 while (NULL != hosts_head) 1246 while (NULL != hosts_head)
1247 free_hosts_entry (hosts_head); 1247 free_hosts_entry (hosts_head);
1248 GNUNET_DNSSTUB_stop (dnsstub_ctx); 1248 GNUNET_DNSSTUB_stop (dnsstub_ctx);
1249 GNUNET_free (my_domain); 1249 GNUNET_free_non_null (my_domain);
1250} 1250}
1251 1251
1252 1252
diff --git a/src/util/scheduler.c b/src/util/scheduler.c
index dd0d5d5cf..3bd7ccec7 100644
--- a/src/util/scheduler.c
+++ b/src/util/scheduler.c
@@ -658,8 +658,8 @@ sighandler_shutdown ()
658 int old_errno = errno; /* backup errno */ 658 int old_errno = errno; /* backup errno */
659 659
660 if (getpid () != my_pid) 660 if (getpid () != my_pid)
661 exit (1); /* we have fork'ed since the signal handler was created, 661 _exit (1); /* we have fork'ed since the signal handler was created,
662 * ignore the signal, see https://gnunet.org/vfork discussion */ 662 * ignore the signal, see https://gnunet.org/vfork discussion */
663 GNUNET_DISK_file_write (GNUNET_DISK_pipe_handle 663 GNUNET_DISK_file_write (GNUNET_DISK_pipe_handle
664 (shutdown_pipe_handle, GNUNET_DISK_PIPE_END_WRITE), 664 (shutdown_pipe_handle, GNUNET_DISK_PIPE_END_WRITE),
665 &c, sizeof (c)); 665 &c, sizeof (c));