diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-07-25 15:15:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-07-25 15:15:19 +0000 |
commit | 5d2e17869e4d989465d1d3f4c0717745466b52a2 (patch) | |
tree | ffcd62e5a471f4ad43565165042f512654cb7d7b /src/gns | |
parent | cd48fb64049abd019981d2ed45c6a028a1f038e3 (diff) | |
download | gnunet-5d2e17869e4d989465d1d3f4c0717745466b52a2.tar.gz gnunet-5d2e17869e4d989465d1d3f4c0717745466b52a2.zip |
-fixes
Diffstat (limited to 'src/gns')
-rw-r--r-- | src/gns/test_gns_proxy.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c index 96fe35ede..4cd0a3714 100644 --- a/src/gns/test_gns_proxy.c +++ b/src/gns/test_gns_proxy.c | |||
@@ -135,10 +135,19 @@ do_shutdown () | |||
135 | GNUNET_free_non_null (url); | 135 | GNUNET_free_non_null (url); |
136 | 136 | ||
137 | if (NULL != tmp_cfgfile) | 137 | if (NULL != tmp_cfgfile) |
138 | remove (tmp_cfgfile); | 138 | { |
139 | 139 | if (0 != remove (tmp_cfgfile)) | |
140 | GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING, "remove", tmp_cfgfile); | ||
141 | GNUNET_free (tmp_cfgfile); | ||
142 | tmp_cfgfile = NULL; | ||
143 | } | ||
140 | if (NULL != proxy_proc) | 144 | if (NULL != proxy_proc) |
141 | GNUNET_OS_process_kill (proxy_proc, 9); | 145 | { |
146 | (void) GNUNET_OS_process_kill (proxy_proc, SIGKILL); | ||
147 | GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (proxy_proc)); | ||
148 | GNUNET_OS_process_destroy (proxy_proc); | ||
149 | proxy_proc = NULL; | ||
150 | } | ||
142 | url = NULL; | 151 | url = NULL; |
143 | } | 152 | } |
144 | 153 | ||