From 6b09ce1b38ed47b8827d28678765d5ab6d6b2ac2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 4 Nov 2009 14:28:05 +0000 Subject: [PATCH] send confirmation if kill request is pending --- src/arm/gnunet-service-arm.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c index 2760f9156..42cfc49a4 100644 --- a/src/arm/gnunet-service-arm.c +++ b/src/arm/gnunet-service-arm.c @@ -636,8 +636,11 @@ maint (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { running = pos->next; if (GNUNET_OK != GNUNET_OS_process_wait(pos->pid)) - GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid"); - free_entry (pos); + GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "waitpid"); + if (NULL != pos->kill_continuation) + pos->kill_continuation (pos->kill_continuation_cls, pos); + else + free_entry (pos); } return; } -- 2.25.1