exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit a03e4fa72fad4c30bac9719fbfea39947f0bf646
parent 28dfae3e7c5d7291a4036358050c9c886ee43316
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 19 Dec 2022 13:01:10 +0100

-fix crash if dbinit is not found

Diffstat:
Msrc/benchmark/taler-bank-benchmark.c | 11+++++++++++
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/benchmark/taler-bank-benchmark.c b/src/benchmark/taler-bank-benchmark.c @@ -560,6 +560,17 @@ parallel_benchmark (void) "-c", cfg_filename, "-r", NULL); + if (NULL == dbinit) + { + if (NULL != bankd) + { + GNUNET_OS_process_kill (bankd, + SIGTERM); + GNUNET_OS_process_destroy (bankd); + bankd = NULL; + } + return GNUNET_SYSERR; + } GNUNET_break (GNUNET_OK == GNUNET_OS_process_wait (dbinit)); GNUNET_OS_process_destroy (dbinit);