aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0 <ng0@n0.is>2019-02-17 00:42:02 +0000
committerng0 <ng0@n0.is>2019-02-17 00:42:02 +0000
commit6485325f72b588c838f8b6d9e12c50c642e493b8 (patch)
treebb2a5a81e755022bddd899e95bac4c3820491211
parenta5d951576bf49659cce4f9ba88448322b5440feb (diff)
parente16d72da26908b79f93c200f96dc621a1cfef48d (diff)
downloadgnunet-6485325f72b588c838f8b6d9e12c50c642e493b8.tar.gz
gnunet-6485325f72b588c838f8b6d9e12c50c642e493b8.zip
Merge branch 'master' of gnunet.org:gnunet
-rw-r--r--contrib/apparmor/gnunet-mesh13
-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
5 files changed, 11 insertions, 16 deletions
diff --git a/contrib/apparmor/gnunet-mesh b/contrib/apparmor/gnunet-mesh
deleted file mode 100644
index 9f5b07fc5..000000000
--- a/contrib/apparmor/gnunet-mesh
+++ /dev/null
@@ -1,13 +0,0 @@
1# Last Modified: Fri Aug 7 18:02:28 2015
2#include <tunables/global>
3#include <tunables/gnunet>
4
5profile @{GNUNET_PREFIX}/bin/gnunet-mesh {
6 #include <abstractions/base>
7 #include <abstractions/gnunet-common>
8
9 @{GNUNET_PREFIX}/bin/gnunet-mesh mr,
10
11 # Site-specific additions and overrides. See local/README for details.
12 #include <local/gnunet>
13}
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));