-fix crash if dbinit is not found

This commit is contained in:
Christian Grothoff 2022-12-19 13:01:10 +01:00
parent 28dfae3e7c
commit a03e4fa72f
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -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);