diff options
Diffstat (limited to 'src/util/test_os_start_process.c')
-rw-r--r-- | src/util/test_os_start_process.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/test_os_start_process.c b/src/util/test_os_start_process.c index f732fbbdf..599451898 100644 --- a/src/util/test_os_start_process.c +++ b/src/util/test_os_start_process.c | |||
@@ -204,6 +204,7 @@ check_kill () | |||
204 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_ERR, hello_pipe_stdin, hello_pipe_stdout, fn, | 204 | GNUNET_OS_start_process (GNUNET_YES, GNUNET_OS_INHERIT_STD_ERR, hello_pipe_stdin, hello_pipe_stdout, fn, |
205 | "gnunet-service-resolver", "-", NULL); | 205 | "gnunet-service-resolver", "-", NULL); |
206 | sleep (1); /* give process time to start, so we actually use the pipe-kill mechanism! */ | 206 | sleep (1); /* give process time to start, so we actually use the pipe-kill mechanism! */ |
207 | GNUNET_free (fn); | ||
207 | if (0 != GNUNET_OS_process_kill (proc, SIGTERM)) | 208 | if (0 != GNUNET_OS_process_kill (proc, SIGTERM)) |
208 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); | 209 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); |
209 | GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (proc)); | 210 | GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (proc)); |
@@ -241,6 +242,7 @@ check_instant_kill () | |||
241 | { | 242 | { |
242 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); | 243 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); |
243 | } | 244 | } |
245 | GNUNET_free (fn); | ||
244 | GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (proc)); | 246 | GNUNET_assert (GNUNET_OK == GNUNET_OS_process_wait (proc)); |
245 | GNUNET_OS_process_destroy (proc); | 247 | GNUNET_OS_process_destroy (proc); |
246 | proc = NULL; | 248 | proc = NULL; |