diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-12-19 13:01:10 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-12-19 13:01:10 +0100 |
commit | a03e4fa72fad4c30bac9719fbfea39947f0bf646 (patch) | |
tree | 13685f38f1bf64126775cbb7a5f371135d391712 | |
parent | 28dfae3e7c5d7291a4036358050c9c886ee43316 (diff) | |
download | exchange-a03e4fa72fad4c30bac9719fbfea39947f0bf646.tar.xz |
-fix crash if dbinit is not found
-rw-r--r-- | src/benchmark/taler-bank-benchmark.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/benchmark/taler-bank-benchmark.c b/src/benchmark/taler-bank-benchmark.c index 6a1af1f22..e13ee520b 100644 --- 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); |