test_chat_private.c | test_chat_private.c | |||
---|---|---|---|---|
skipping to change at line 155 | skipping to change at line 155 | |||
static void | static void | |||
stop_arm (struct PeerContext *p) | stop_arm (struct PeerContext *p) | |||
{ | { | |||
#if START_ARM | #if START_ARM | |||
if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM)) | if (0 != GNUNET_OS_process_kill (p->arm_proc, SIGTERM)) | |||
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "kill"); | |||
if (GNUNET_OS_process_wait (p->arm_proc) != GNUNET_OK) | if (GNUNET_OS_process_wait (p->arm_proc) != GNUNET_OK) | |||
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid"); | GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid"); | |||
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ARM process %u stopped\n", | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "ARM process %u stopped\n", | |||
GNUNET_OS_process_get_pid (p->arm_proc)); | GNUNET_OS_process_get_pid (p->arm_proc)); | |||
GNUNET_OS_process_close (p->arm_proc); | GNUNET_OS_process_destroy (p->arm_proc); | |||
p->arm_proc = NULL; | p->arm_proc = NULL; | |||
#endif | #endif | |||
GNUNET_CONFIGURATION_destroy (p->cfg); | GNUNET_CONFIGURATION_destroy (p->cfg); | |||
} | } | |||
static void | static void | |||
abort_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | abort_test (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
{ | { | |||
if (alice_room != NULL) | if (alice_room != NULL) | |||
{ | { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |