commit 2ab254e5651a522e8adb8f28a0eb861a45a67c50
parent 5f234dbfc2053b21a6954b612115cc62200adb35
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Mon, 2 Jun 2025 12:44:42 +0200
fix #10060 (nicer shutdown of taler-merchant-depositcheck if child had trouble)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/backend/taler-merchant-depositcheck.c b/src/backend/taler-merchant-depositcheck.c
@@ -823,6 +823,8 @@ child_done_cb (void *cls,
struct Child *c = cls;
c->cwh = NULL;
+ GNUNET_OS_process_destroy (c->process);
+ c->process = NULL;
if ( (GNUNET_OS_PROCESS_EXITED != type) ||
(0 != exit_code) )
{
@@ -835,8 +837,6 @@ child_done_cb (void *cls,
global_ret = EXIT_NOTINSTALLED;
return;
}
- GNUNET_OS_process_destroy (c->process);
- c->process = NULL;
if (test_mode &&
(! GNUNET_TIME_relative_is_zero (c->rd)) )
{