diff options
Diffstat (limited to 'src/fs/test_fs_namespace_list_updateable.c')
-rw-r--r-- | src/fs/test_fs_namespace_list_updateable.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/fs/test_fs_namespace_list_updateable.c b/src/fs/test_fs_namespace_list_updateable.c index dda7bb4f2..291ab6d9d 100644 --- a/src/fs/test_fs_namespace_list_updateable.c +++ b/src/fs/test_fs_namespace_list_updateable.c | |||
@@ -86,14 +86,17 @@ static void | |||
86 | stop_arm (struct PeerContext *p) | 86 | stop_arm (struct PeerContext *p) |
87 | { | 87 | { |
88 | #if START_ARM | 88 | #if START_ARM |
89 | if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM)) | 89 | if (NULL != p->arm_proc) |
90 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); | 90 | { |
91 | if (GNUNET_OS_process_wait(p->arm_proc) != GNUNET_OK) | 91 | if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM)) |
92 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid"); | 92 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); |
93 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 93 | if (GNUNET_OS_process_wait(p->arm_proc) != GNUNET_OK) |
94 | "ARM process %u stopped\n", GNUNET_OS_process_get_pid (p->arm_proc)); | 94 | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid"); |
95 | GNUNET_OS_process_close (p->arm_proc); | 95 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
96 | p->arm_proc = NULL; | 96 | "ARM process %u stopped\n", GNUNET_OS_process_get_pid (p->arm_proc)); |
97 | GNUNET_OS_process_close (p->arm_proc); | ||
98 | p->arm_proc = NULL; | ||
99 | } | ||
97 | #endif | 100 | #endif |
98 | if (uri_this != NULL) | 101 | if (uri_this != NULL) |
99 | GNUNET_FS_uri_destroy (uri_this); | 102 | GNUNET_FS_uri_destroy (uri_this); |