-fix crash if dbinit is not found
This commit is contained in:
parent
28dfae3e7c
commit
a03e4fa72f
@ -560,6 +560,17 @@ parallel_benchmark (void)
|
|||||||
"-c", cfg_filename,
|
"-c", cfg_filename,
|
||||||
"-r",
|
"-r",
|
||||||
NULL);
|
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_break (GNUNET_OK ==
|
||||||
GNUNET_OS_process_wait (dbinit));
|
GNUNET_OS_process_wait (dbinit));
|
||||||
GNUNET_OS_process_destroy (dbinit);
|
GNUNET_OS_process_destroy (dbinit);
|
||||||
|
Loading…
Reference in New Issue
Block a user